What is decorator in angular 2?



What is decorator in angular 2?..

Answer / Renu Sirohi

A decorator in Angular 2 is a function that modifies or extends the functionality of a class, method, property, or parameter. Decorators are used to provide additional metadata for Angular's dependency injection system and for other purposes.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

What is internationalization? How can it be implemented in angularjs?

1 Answers  


What are the new features in css3?

1 Answers  


In how many different ways, you can define a directive and what is the best practice?

1 Answers  


What is scope hierarchy?

1 Answers   SLK Software,


Which service does the html $compile service use for the purpose of data binding?

1 Answers  


What is the difference between angular 4 and angular 7?

1 Answers  


Why is typescript used in angular?

1 Answers  


What is the difference between angularjs and node.js?

1 Answers  


What is ng-content Directive?

1 Answers  


What are angular templates?

1 Answers  


What is ng-repeat directive in angularjs?

1 Answers  


What is tsconfig json in angulr 2?

1 Answers  


Categories