9. AtScript
Syntax sugar on top of ES6 for meta-data annotations
@Component ({
selector: 'my-component'
})
@View ({
inline: '<div>Hi from Angular 2</div>'
})
10. ES6
Represents the “controller"
export class MyComponent {
constructor () {
this.name = 'Filipe'
}
sayMyName () {
console.log(‘'My name is ‘ + this.name)
}
}
17. Change detection
1.Tree of components
2. Reactive system
3. Directed tree
4. Detection system walks the whole tree
5. Immutable/Observable objects - O(n) to
O(log n)
6. Zone.js