Routing issue with ui-router in ionic (AngularJS)
问题 I have UI routes defined in ionic, and made a console.log in controller, but my problem is when I switch between URLs using ng-href="/#/LINK" then no data displayed in console, but when I refresh the same page I am able to see the data in console .... let me know what I am doing wrong here. Routes - .state('app.roomone', { url: "/roomone/:id", views: { 'menuContent': { templateUrl: "templates/roomone.html", controller: 'RoomoneCtrl' } } }) .state('app.roomtwo', { url: "/selecroom/:roomname/