/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {Component} from '@angular/core'; export interface Hero { id: number; name: string; } @Component({ selector: 'my-app', template: `~{empty} <~{start-tag}h~{start-tag-after-h}1~{start-tag-h1} ~{h1-after-space}> ~{h1-content} {{~{sub-start}title~{sub-end}}} ~{after-h1}

{{~{h2-hero}hero.~{h2-name}name}} details!

{{~{label-hero}hero.~{label-id}id}}
&~{entity-amp}amp; ` }) export class AppComponent { title = 'Tour of Heroes'; hero: Hero = {id: 1, name: 'Windstorm'}; private internal: string = 'internal'; }