8. COMPOSITION
Object Composition (RequireJS)
Visual Composition (data-bind="compose:... ")
Ak string (html alebo module id)
Ak objekt
Ak funkcia
9. LIFECYCLE
Callback Lifecycle Purpose
getView() and viewUrl Composition Enables the new object to return a custom view.
canDeactivate() Activator Allows the previous object to cancel deactivation.
canActivate() Activator Allows the new object to cancel activation.
deactivate() Activator Allows the previous object to execute custom deactivation logic.
activate() Composition & Activator Allows the new object to execute custom activation logic.
binding() Composition Notifies the new object immediately before databinding occurs.
bindingComplete() Composition Notifies the new object immediately after databinding occurs.
attached() Composition Notifies the new object when its view is attached to its parent DOM
node.
compositionComplete() Composition Notifies the new object when the composition it participates in is
complete.
detached() Composition Notifies a composed object when its view is removed from the
DOM.
16. BUDÚCNOSŤ DURANDALJS
Rob Eisenberg nastúpil do AngularJS 2.0 teamu
[http://eisenbergeffect.bluespire.com/angular-and-durandal-converge/]
DurandalJS 1.x pre old/modern browsers
AngularJS 2.x pre modern browsers