Questions tagged [angular-template-variable]

Use this tag for questions related to the Angular template reference variables. This is a concept from the (new) Angular Framework (not AngularJS)

A template reference variable is often a reference to a DOM element within a template. It can also be a reference to an Angular component or directive or a web component.

In order to create a template reference variable, use the hash symbol (#) to declare a reference variable.

Example:

The following #phone declares a phone variable on an element.

<input #phone placeholder="phone number">

Documentation: https://angular.io/guide/template-syntax#template-reference-variables--var-

31 questions
-2
votes
1 answer

Angular 2+ update template values using pipe

I am writing a checkout view of a shopping cart where an array is displayed with the items to be purchased like this: app.component.html
I want to give the user the…
1 2
3