Advertisement

Ng Container Vs Ng Template

Ng Container Vs Ng Template - If you use it without the structural directive, nothing happens and it will render. Which is better to be used in our code. It provides a way to define an html code that can be reused multiple times. We can even change completely the look and feel of a component based on input templates, and we can define a template and instantiate on. I solved it this way: Web 2,774 12 49 96 add a comment 2 answers sorted by: I've read an answer regarding the difference between this.

Angular ngcontent, ngcontainer, ngtemplate and ngTemplateOutlet
ngcontent vs ngtemplate vs ngcontainer Advanced Angular Hero to
Template vs. ngcontainer For Grouping DOM Nodes In Angular 2.4.4

I've Read An Answer Regarding The Difference Between This.

I solved it this way: It provides a way to define an html code that can be reused multiple times. Which is better to be used in our code. Web 2,774 12 49 96 add a comment 2 answers sorted by:

We Can Even Change Completely The Look And Feel Of A Component Based On Input Templates, And We Can Define A Template And Instantiate On.

If you use it without the structural directive, nothing happens and it will render.

Related Post: