Angular Template Syntax

Template reference variable is

  • often a reference to a DOM element within a html template.
  • often a reference to an Angular component
  • a directive
  • a web component

···
@Input() hero: Hero;
@Output() deleteRequest = new EventEmitter();
···

···
@Component({
inputs: [‘hero’],
outputs: [‘deleteRequest’],
})
···