jokade / angulate2

Scala.js bindings for Angular
MIT License
87 stars 15 forks source link

Support all lifecycle hooks #44

Closed n3phtys closed 7 years ago

n3phtys commented 7 years ago

Currently supported are ngOnInit and ngOnDestroy. The other 6 https://angular.io/docs/ts/latest/guide/lifecycle-hooks.html are not yet in.

This especially has focus on ngOnChanges, which is triggered every time an input changes. This is especially useful if another property of the Component is supposed to be calculated based on input. There is no simple way to initialize such a property correctly without this lifecycle hook.