• +91 9723535972
  • info@interviewmaterial.com

Angular Interview Questions and Answers

Related Subjects

Question - Define the ng-content Directive.

Answer -

Conventional HTML elements have some content between the tags. For instance:

Put your paragraph here

Now consider the following example of having custom text between angular tags:

This won’t work like HTML until you use ng-content Directive
However, doing so won’t work the way it worked for HTML elements. In order to make it work just like the HTML example mentioned above, we need to use the ng-content Directive. Moreover, it is helpful in building reusable components.

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners