Why are decorators used in Angular 2 ?

Member

by braeden , in category: Technology , 3 years ago

Why are decorators used in Angular 2 ?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by tyrel_franecki , 3 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.