Why are decorators used in Angular 2 ?

Member

braeden

by braeden , in category: Technology , 2 months ago

Why are decorators used in Angular 2 ?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

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