Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AppViewModelFactory 用工厂模式创造ViewModle的问题 #103

Open
Supopo opened this issue Apr 29, 2022 · 0 comments
Open

AppViewModelFactory 用工厂模式创造ViewModle的问题 #103

Supopo opened this issue Apr 29, 2022 · 0 comments

Comments

@Supopo
Copy link

Supopo commented Apr 29, 2022

利用工程创造ViewModel,然后还要在页面initViewModel()。我想知道这样的目的是为了在viewModel直接使用model.吗?感觉很麻烦啊。创建一个viewModel 至少要在两处位置修改。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant