Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Missing feature: callback hooks for directives #12

Open
tbosch opened this issue Mar 22, 2014 · 1 comment
Open

Missing feature: callback hooks for directives #12

tbosch opened this issue Mar 22, 2014 · 1 comment

Comments

@tbosch
Copy link
Contributor

tbosch commented Mar 22, 2014

attach: When all bindings have received their initial value and the node is connected to the document.body

detach: When the view is removed from document.body

@tbosch
Copy link
Contributor Author

tbosch commented Mar 22, 2014

A related problem: get child directives in the DOM order and maybe also change their order in the DOM.

E.g. if a tab container wants to know or even reorder tab children that a use specified in the template.
The tabs might not use ng-repeat, i.e. they would not create new views

<tab-container>
  <tab id=1>
  <tab id=2>
  <tab id=3>
</tab-container>

This is again related to what ng-repeat does: adding/removing/moving nodes in the DOM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant