简体   繁体   中英

Is View model in jetpack is same as view model in MVVM architecture?

I am a noob in MVVM architecture, I like to develop my future projects in this architecture. If I add and implement Android Jetpack Viewmodel class in my project and use them properly will it comes in MVVM architecture? Or is there a difference in MVVM's view model.?

Android Architecture Components (AAC), which is part of Android Jetpack, are a collection of libraries that help you to design an MVVM-style app.

To achieve real MVVM implementation, you can use the combination of AAC (such as ViewModel , LiveData and Room ) with Data Binding .

For details read this article .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM