What is use of ng-content directive in Angular 2?

Nelvan Balthazar Petrian Karensus Resi
Nelvan Balthazar Petrian Karensus Resi

Posted On: Mar 13, 2020

 

The ng_content tag is used as a placeholder to display dynamic content. This placeholder tag is replaced with the original content as the template is parsed. The ng-content creates components that can be configured depending on the needs of the user.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Angular 2 Interview Questions

    What is Angular 2 ?

    Angular 2 is a completely revived component-based framework in which an application is a tree of loosely coupled compon..

    Angular 2 Interview Questions

    List some advantages of Angular 2 over Angular1.

    Angular 2 is a re-written version of Angular1 and not an update. The best way to compare Angular 2 and Angular 1 is by f..

    Angular 2 Interview Questions

    What are the new features of Angular 2?

    Angular 2 is a platform that encompasses a wide range of capabilities. Some new features were added in Angular 2 which i..