Miloš Stani?
Member since Dec 3, 2015
- Profile: /members/12948-milo-stani.htm
- Comments: 2
Recent Blog Comments By Miloš Stani?
-
Accessing The View-Model Inside The Link Function When Using Controller-As In AngularJS
Posted on Dec 23, 2015 at 4:04 AM
@Ben, Wow, thanks, I didn't even know ngModelController existed. Very useful! Also didn't know you could access controllers as an array.... read more »
-
Accessing The View-Model Inside The Link Function When Using Controller-As In AngularJS
Posted on Dec 3, 2015 at 8:38 AM
@Erko, @Ben, Thanks for this tip. This was the only way I could access directive's own controller, as I was importing controller from parent directive. Like this: app.directive('myDir', function() { function mylink(scope, el, attrs, controller){ scope.someFn() = function() { // h... read more »