I have come across a very weird bug. My UI-Router is set up as follows with the ui-view element in the home template.
.state('main.home.one', { url: '/', templateUrl: 'partials/home/one', controller: "OneCtrl" }) .state('main.home.two', { url: '/two/', templateUrl: 'partials/home/two', controller: "TwoCtrl", }) when I navigate from
main.home.onetomain.home.twousing$state.go()it works finewhen I navigate from
main.home.onetomain.home.twousing the url /two/ it does not work and while it successfully called the template from the server, it loads !-- uiView: undefined --If I change the url to
'/two'from'/two/'then it works fine when navigating by urlOnly
ui-viewelements work, attributes in a<div ui-view>don't work
My goal to to load a state parameter as such: "/two/:id" which of course breaks things. If anyone can shed some insight into this problem, I would be much appreciative.
ng-appandng-viewtags in your html?