|
Answer» Angular was a ground-up rewrite of AngularJS and has many unique features.
- Angular does not have a concept of “scope” or controllers; instead it uses a hierarchy of components as its main architectural concept
- Angular has a different EXPRESSION syntax, focusing on “[ ]” for PROPERTY binding, and “( )” for event binding
- Mobile development – desktop development is much easier when mobile performance issues are handled first
- Modularity – much core functionality has moved to modules, producing a lighter, faster core
- Modern browsers only – reducing the need for browser compatibility workarounds
- Angular recommends the use of Microsoft’s Typescript language, which introduces the following features:
- Class-based Object Oriented Programming
- Static Typing
- Generics
Typescript a superset of ECMAScript 6 (ES6), and is backwards compatible with ECMAScript 5 (i.e.: JavaScript).
Angular also includes the benefits of ES6:
- Lambdas
- Iterators
- For/Of loops
- Python-style generators
- Reflection
- Improved dependency injection– bindings make it possible for dependencies to be named
- Dynamic loading
- Asynchronous template compilation
- SIMPLER Routing
- Replacing controllers and $scope with components and directives – a COMPONENT is a directive with a template.
- Reactive programming support using RxJS.
Angular was a ground-up rewrite of AngularJS and has many unique features. Typescript a superset of ECMAScript 6 (ES6), and is backwards compatible with ECMAScript 5 (i.e.: JavaScript). Angular also includes the benefits of ES6:
|