Hi,
If I need to create a variable in my html template that I can re-use in multiple places within a section for example, how can I do it in Angular?
for example:
my-component.html
<div let-myVar="computedOnComponent()">
<p>{{myVar}}</p>
<div [attr]="myVar">Test</div>
</div>
my-component.ts
computedOnComponent(): = () => "some value";
Top comments (0)