Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49237

On clicking button, only url chnages not the state/view

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 49237

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>