I noticed that in second case, even though element was not rendered in DOM, it’s view model was instantiated (it’s constructor has been hit), and it’s model was bound to undefined. (alpha 26).
Is this a bug or expected behavior?
did you check for the vm not getting created? i’m not on PC so cant do it myself, but my understanding was it wirked for @zeko77 but he got an unexpected sideeffect
even though element was not rendered in DOM, it’s view model was instantiated (it’s constructor has been hit)
Yes, that’s supposed to happen. The components (or better said, controllers) get created, but those are not attached to DOM unless activated. In Au2 you can keep the instantiated VMs around and de/activate those on-demand.
The instantiation behaviour is now changed, and the changes should be out with the next release. With the ‘dev’-build of the packages the changes are already available though.