Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

$state.go() changing URL but not correctly loading template

$
0
0

Hello anthonyi
Thank you for your great post.
I have same issue. but .. When i try this, it is works bad on my own.

This is my LoginCtrl controller..


app.controller('LoginCtrl', function ($scope, $stateParams, $ionicHistory, $timeout, $state, ionicMaterialInk) {

$scope.doLogin = function() {
console.log('Doing login', $scope.loginData);

// code if using a login system
$ionicHistory.nextViewOptions({
disableAnimate: true,
disableBack: true });
$state.go("app.home");

};
});


when i click login button. it is redirect to home .. but UI (CSS) is all broken..
When i refresh page, it is looks good.

What i am wrong? Can you help me?
Thanks


Viewing all articles
Browse latest Browse all 228595

Trending Articles



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