The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Create a Template Storage Service in Angular

Create a Template Storage Service in Angular

4:00
You need to define a `<template>` to be able to use it elsewhere in your app as a `TemplateRef`. You can store these `TemplateRef`s in a Service and then access them from any `@Directive` or `@Component` in your app.
Watch this lesson now
Avatar
egghead.io

You need to define a <template> to be able to use it elsewhere in your app as a TemplateRef. You can store these TemplateRefs in a Service and then access them from any @Directive or @Component in your app.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?