Joined November 2012
·
pjh

Perry Hoffman

Developer at Procurify
·
Vancouver, BC
·
·
·

Great, i'm glad it helped!

@paprikkastudio Commonly when forms or form elements are being used. Since ngModel's controller api provides services for data-binding, validation, CSS updates, value formatting and parsing. A directive could require the ngModel controller for validation of an input while also needing to call a method in its parent directives controller.

Here's an example of it being used in the Angular source code: https://github.com/angular/angular.js/blob/master/src/ng/directive/input.js#L1223

Achievements
449 Karma
30,427 Total ProTip Views