Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Controller is loading twice by using $state.go()

$
0
0

@Ionicoser wrote:

Hi all!

If i'm using $state.go('app.home') my controller appHomeCtrl is loading twice and appCtrl is loading one time again. Can someone help?

$stateProvider
//APP
.state('app', {
 url: '/app',
 cache: false,
 abstract: true,
 templateUrl: 'templates/app.html',
 controller: 'appCtrl',
})
.state('app.home', {
 url: '/home/:id',
 cache: false,
 views: {
  'appContent': {
   templateUrl: 'templates/app/home.html',
   controller: 'appHomeCtrl',
  },
 },
})

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



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