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.