Skip to main content

Posts

Showing posts with the label Why You Used Angular 2?

What Are The New Features Of Angular 2? Why You Used Angular 2?

Angular 2 Features – ·        Angular 2 is Entirely Component Based ·        Directives ·        Dependency Injection ·        Used of TypeScript ·        Used of Lambdas or Arrow functions ·        Generics ·        Forms and Validations ·        And So on..... Component Based - It is entirely component based. It is not used to scope and controllers and Angular 2 are fully replaced by components and directives. Directives - The directive can be declared as @Directive annotation. A component is a directive with a template and the @Component decorator is actually a @Directive decorator extended with template oriented features. Dependency Injection - Dependency Injection is a powerful pattern for managing code dependen...