What is a typescript decorator?



What is a typescript decorator?..

Answer / Mukesh Gupta

A TypeScript Decorator is a special kind of function that allows you to attach metadata to any declarations such as classes, methods, properties, or parameters. In Angular, decorators are used for component and service declarations.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

Explain different types of component decorators in angular 4?

1 Answers  


What is pipes in angular 2?

1 Answers  


What is the purpose of exports in an ng module?

1 Answers  


What is binding in angular?

1 Answers  


Is angular easy to learn?

1 Answers  


What are directive behaviors?

1 Answers  


What is the difference between angular 7 and angular 8?

1 Answers  


How to handling error and logging it?

1 Answers  


Explain ng-app directive in angular.

1 Answers  


What do you mean by $rootscope in angularjs?

1 Answers  


Mention what are the styling form that ngmodel adds to css classes?

1 Answers  


Is ng app required?

1 Answers  


Categories