@Mariam123 wrote:
It has been a real struggle for me to navigate b/w different screens/views. I have created multiple templates under the templates directory in www. I have used ng-click directive that will trigger a changePage() function under which I have written the following code:
app.controller('loginController', function($scope,$state){
$scope.changePage = function () {
$state.go('user');
}
});But whenever I click on the button, the url changes but the view doesn't. I have to explicitly reload the page in the browser to get the corresponding correct view to the url. I figure may be I need some asynchronous directive but I don't know any. Any remedies pls? I am so pissed off.
Posts: 3
Participants: 2