vendredi 19 septembre 2014

How do I configure a view to use a different ViewModel and ViewController?

Outside of Architect it is very straightforward to configure a component class to use a ViewModel and ViewController from some other component class.

Is there a way to achieve this in Architect?


I have actually been thinking about doing this for some time and and have only now gotten around to trying it. I can set controller and viewModel.type, but the existing (generated) values remain and there does not appear to be a way to delete the ViewModel and ViewController that were created in conjunction with the component class. I am quite surprised that I cannot do this as I hit a bug yesterday whereby a component class actually did lose the connection to its corresponding ViewController and I had to resort to configuring it manually (in the absence of this it was going up the component hierarchy). Ironically, this is actually what I am attempting to do intentionally today.


Hints, advice, comments welcome.


Scott.






How do I configure a view to use a different ViewModel and ViewController?

Aucun commentaire:

Enregistrer un commentaire