I am using version 2.4.9 of Angular. I would like to declare an html element that I can use in several places:
<div #template>
foo
</div>
<header>
{{ template }}
</header>
<body>
{{ template }}
</body>
Obviously, this will not work, and the solution will be to create the component. I saw in angular4 that something was causing ng-template. Is there anything similar in angular 2.4.X?
source
share