mercredi 25 mars 2015

Get current controller instance in UI-Router? (in tests)

I setup a test for a route based on this answer. I now want to check if things injected to the route's controller are setup correctly. From the state object, I can only get the controller's constructor function. I am wondering how can I access the actual instance?


Aucun commentaire:

Enregistrer un commentaire