| 1. |
Explain Component Decorators In Angular 4? |
|
Answer» A decorator is the core concept when developing an angular framework with VERSION 2 and above. It may become a core language feature for JAVASCRIPT soon. In angular 4, decorators are used extensively and are ALSO used to compile a code. There are 4 different types of decorators:
A decorator is a function that is invoked with a prefix “@” symbol and is immediately FOLLOWED by a class, parameter, method, or property. A decorator returns the same thing which was given as an input but in an augmented form. A decorator is the core concept when developing an angular framework with version 2 and above. It may become a core language feature for JavaScript soon. In angular 4, decorators are used extensively and are also used to compile a code. There are 4 different types of decorators: A decorator is a function that is invoked with a prefix “@” symbol and is immediately followed by a class, parameter, method, or property. A decorator returns the same thing which was given as an input but in an augmented form. |
|