Explain component decorators in angular 4?



Explain component decorators in angular 4?..

Answer / Neha Mehrotra

Component decorators are used to define metadata for Angular components. They provide information about the component's properties, inputs, outputs, and other features. For example, `@Component({ selector: 'my-component' })` defines a selector for the component.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

What is html api?

1 Answers  


Indexof(), if the given value is not in the string / array it will return what?

1 Answers  


What are filters in angularjs? Can you list some?

1 Answers  


How long does bearer token last?

1 Answers  


What are decorators in angular?

1 Answers  


What is event in angularjs?

1 Answers  


Can you please explain the difference between angular.js and backbone.js?

1 Answers  


What is lazy loading in c#?

1 Answers  


Is webpack necessary for angular?

1 Answers  


How does the $resource `get` function work synchronously in angularjs ?

1 Answers  


What is the advantage of angular?

1 Answers  


How to disable right click event in angularjs?

1 Answers  


Categories