[AngularJS] parent controller detect change in child directive

2016-04-07 Thread Rj Ewing
Hello, I have a directive with a select input. Upon change of the select input, I would like to do something in the parent controller. What's the best way to do this? angular.module('myApp') .directive('projectSelect', ['$rootScope', function($rootScope) { var directive = { restrict

[AngularJS] Re: accessing factory variables from multiple controllers

2016-04-05 Thread Rj Ewing
app/components/auth/login.html", controller: "LoginCtrl as vm", }); }]); On Monday, April 4, 2016 at 11:09:55 PM UTC-7, Ravi Kiran R wrote: > > Can we know how the controller are placed on view ? > > On Tuesday, 5 April 2016 05:04:30 UT

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

2016-04-04 Thread RJ Ewing
ore > 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 updated >> (after authentication) &g

[AngularJS] accessing factory variables from multiple controllers

2016-04-04 Thread Rj Ewing
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.controller('NavCtrl', ['$scope', 'AuthFactory', 'UserFactory', function ($scope, AuthFactory, UserFactory) { var vm =