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
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
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
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 =