Using iron-router with angular-meteor makes controllers being loaded twice -
i have meteor application using angular-meteor. need load different angular modules depending on url. added iron-router application , continue handle routes each module using ngroute , anchor nav behaves strangely if url contains params. made small test case available here:
https://github.com/clouchtibat/iron-router-ng-route
if click on 'truc' link , on 'test', next routes changes make controller instantiated 2 times. works if urls have no params.
i tested ui-router (in with-ui-router branch) , problem same in addition view duplicated.
is bug in 1 of 2 routers or there wrong implementation?
take @ conversations in angular-meteor github issues:
https://github.com/urigo/angular-meteor/issues/154
https://github.com/urigo/angular-meteor/issues/493
i think can directions. having hard time mixin angular-meteor , iron:router.
Comments
Post a Comment