import { Component } from '@angular/core';
let t = {
// #docregion show-hero
template: `
{{title}}
{{hero}} details!
`
// #enddocregion show-hero
};
t = {
// #docregion show-hero-2
template: `{{title}}
{{hero.name}} details!
`
// #enddocregion show-hero-2
};
t = {
// #docregion multi-line-strings
template: `
{{title}}
{{hero.name}} details!
{{hero.id}}
{{hero.name}}
`
// #enddocregion multi-line-strings
};
/*
// #docregion name-input
// #enddocregion name-input
*/
/////////////////
@Component(t)
// #docregion app-component-1
export class AppComponent {
title = 'Tour of Heroes';
hero = 'Windstorm';
}
// #enddocregion app-component-1