[AngularJS] Re: accessing factory variables from multiple controllers

2016-04-05 Thread Rj Ewing
.config(['$stateProvider', '$urlRouterProvider', '$locationProvider', function ($stateProvider, $urlRouterProvider, $locationProvider) { $stateProvider .state('login', { url: "/login", templateUrl: "app/components/auth/login.html", controller: "Logi

[AngularJS] Re: accessing factory variables from multiple controllers

2016-04-04 Thread Ravi Kiran R
Can we know how the controller are placed on view ? On Tuesday, 5 April 2016 05:04:30 UTC+10, Rj Ewing wrote: > > Hello, I'm new to angular and having trouble accessing the user from my > UserFactory. My NavCtrl isn't recognizing when UserFactory.user is updated > (after authentication) > > app.

Re: [AngularJS] Re: accessing factory variables from multiple controllers

2016-04-04 Thread RJ Ewing
I'm not really getting an error. NavCtrl.vm.user is undefined even though I can grab the UserFactory on the console and the user property is set correctly. > On Apr 4, 2016, at 7:17 PM, Tito wrote: > > what error are you seeing? I am thinking you need the UserFactory before > NavCtrl? > >> O

[AngularJS] Re: accessing factory variables from multiple controllers

2016-04-04 Thread Tito
what error are you seeing? I am thinking you need the UserFactory before NavCtrl? On Monday, April 4, 2016 at 12:04:30 PM UTC-7, Rj Ewing wrote: > > Hello, I'm new to angular and having trouble accessing the user from my > UserFactory. My NavCtrl isn't recognizing when UserFactory.user is update