Sharing Top Content from the Angular-sphere.

Passing ngModelController Into A Component Directive Controller In AngularJS

  • // At the time the component controller is instantiated, we don’t
  • By using the link() function to coordinate the injection of the ngModelController, we continue to shield the component Controller from the DOM structure.
  • // The ngModel controller exposed on the DOM.

Read the full article, click here.


@CodeDesk: “Passing ngModelController Into A Component Directive Controller In AngularJS
#codedesk #AngularJS…”


Ben Nadel looks at how to inject the ngModelController into a custom component directive controller, in AngularJS, keeping the controllers and the DOM separated thanks to Martin Hochel!


Passing ngModelController Into A Component Directive Controller In AngularJS

Comments are closed, but trackbacks and pingbacks are open.