What is ng-content Directive?



What is ng-content Directive?..

Answer / Vikram Singh Vimal

ng-content Directive in Angular allows you to inject the contents of a component's template into a slot within another component. This enables dynamic content and reusable components.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

What is Transpiling in Angular?

1 Answers  


Explain two-way binding in angularjs?

1 Answers  


How to debug angular 4 projects from visual studio 2017?

1 Answers  


How do we include css file ins. The component except using styleurls property?

1 Answers  


Why do we use ngoninit in angular?

1 Answers  


Can angular applications (ng-app) be nested within each other?

1 Answers  


What is rx observable?

1 Answers  


Explain ng-disabled directive?

1 Answers  


What does aot stand for?

1 Answers  


How would you use a route guard?

1 Answers  


What is bootstrapping in angular js?

1 Answers  


What difference between ng-app vs. Data-ng-app and x-ng-app?

1 Answers  


Categories