How to declare a component in angular 2?



How to declare a component in angular 2?..

Answer / Padam Garg

*Declaring Components*: In Angular 2, you can create components by using the `@Component` decorator. The minimum requirement is defining a selector, template, and class for the component.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

Explain the reasons that compel a web developer to choose angularjs for his web development project?

1 Answers  


What are the symbols used in one way and two ways data binding?

1 Answers  


Why is it called angular?

1 Answers  


How can you bypass sanitation in angular and why would you do so?

1 Answers  


Mention some angularjs directives and their purpose?

1 Answers  


Can we use react in angular?

1 Answers  


Why we use ng app in angularjs?

1 Answers  


How to get user input from the $event object?

1 Answers  


What is injector bubbling?

1 Answers  


What are the disadvantages of angularjs?

1 Answers  


Why should use angular js?

1 Answers  


Explain AngularJS Application Life-Cycle?

1 Answers  


Categories