Amio.io
Amio.io

Reputation: 21565

AngularJS: Controller inheritance for components

How to inherit controllers of angular components? In the "old" angular I could use $controller or $injector but what shall I do with isolated scopes?

Upvotes: 1

Views: 1021

Answers (1)

Kobi Cohen
Kobi Cohen

Reputation: 678

You can use $parent, $$childHead, $$childTail.

Though isolated scope don't inherit prototypically, they do have parent/child references

Upvotes: 1

Related Questions