mvvm - Nativescript getViewById from ViewModel -


i used textfield using getviewbyid() apply native android filters it. how can viewmodel without breaking rules of mvvm architecture?

you cannot access textfield viewmodel without breaking mvvm pattern.

anyway, advice call getviewbyid() viewmodel set native android filter functionality, since mvvm implementation of nativescript not designated solving problem. doesn't have fear bad practice @ all.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -