2. Background
revolution instead of evolution
currently in BETA (since December 2015)
release date not yet announced
Angular2
By Michał Przyszczypkowski
12. Annotations / Decorators
@ExampleAnnotation({
annotationKey: annotationValue
})
export class ExampleClass {
}
Decorators are proposed as standard for ES
Already implemented in TS
@AnotherExampleAnnotation({
annotationKey: annotationValue
})
doSomething() {
//...
}
17. Angular2
App is made of components
Tree structure
Concepts from AngularJS 1.x no longer
relevant
18. Angular2
App is made of components
Tree structure
Concepts from AngularJS 1.x no longer
relevant
$scope, $directive, $controller, $service,
$factory - no longer exist
19. Angular2
There is no $scope.$apply()
No need to use $timeout, $interval etc.
All events that may lead to bindings
changes are patched within library
We don't need to handle changes
detection anymore