Adventures in Angular

Episode 265: AiA 264: ngTemplateOutlets with Stephen Cooper

Adventures in Angular

In this episode of Adventures in Angular the panel interviews Stephen Cooper about his recent talk at Angular Connect. His talk was about ngTemplateOutlets. Stephen answers the questions of the panel about ngTemplateOutlets and explains how and when to use them. He starts by explaining the difference between component outlets and template outlets.

 

 Aaron Frost, Frosty, asks Stephen to walk through how to make a ngTemplate and explain what it is useful for. The panel considers the various use cases they would use this for. Frosty wonders why he would use a ngTemplateOutlet instead of a bunch of ngIfs. Stephen explains when it would be wise to use ngIfs and when it would be better to use ngTemplateOutlets. 

 

The panel discusses ngComponentOutlets, Stephen explains how they relate to ngTemplateOutlets and how they give you another level to reusing components. He overviews the best way to use ngComponentOutlets and warns listeners of the tricky parts. 

 

Stephen shares the best times to use ngTemplateOutlets and overviews some of the common use cases he has seen for them. He explains that they are very useful when creating shareable components or repeating similar chunks of code in a component. He shares some resources to help listeners get started. 

Panelists

  • Aaron Frost

  • Alyssa Nicoll

  • Brian Love

  • Shai Reznik

Guest

  • Stephen Cooper

________________________________________________________________________________________________________________________

"The MaxCoders Guide to Finding Your Dream Developer Job" by Charles Max Wood will be out on November 20th on Amazon.  Get your copy on that date only for $1.

________________________________________________________________________________________________________________________

Sponsors

Links

Picks

Brain Love:

Alyssa Nicoll:

Aaron Frost:

Shai Reznik:

Stephen Cooper:

  • Visiting museums near you

Special Guest: Stephen Cooper .

Next Episodes

Adventures in Angular

MAS 097: Stephen Cooper @ Adventures in Angular

📆 2019-11-05 12:08 / 00:46:34



Adventures in Angular

MAS 096: Kevin A. McGrail @ Adventures in Angular

📆 2019-10-29 11:24 / 00:41:07