@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