Why are decorators used in Angular 2 ?

Member

by braeden , in category: Technology , 4 years ago

Why are decorators used in Angular 2 ?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by tyrel_franecki , 4 years ago

In Angular 2, decorators are used as an identifier of class or type of the object that is created by the TypeScript. The Angular 2 identifies the class below decorator call as the definition of the class and extends the decorator specific properties with the class definition.

Related Threads:

What are Decorators in the Zend framework?
Which service is used for making ajax calls in Angular?
How Angular 4 is different from Angular 2?
Can I automate porting Angular 1 code to Angular 2 ?
How to declare a component in Angular 2 ?
What is Angular 2 ?