Interviews2 answers
How to write inline Template in Angular?
2 Answers
RomanJay AlmazaPosted Aug 2, 2022, 2:43 AM EDT
@Component({selector: 'app-root',template: `<h1>Tour of Heroes</h1><app-hero-main [hero]="hero"></app-hero-main>`,styles: ['h1 { font-weight: normal; }']})export class HeroAppComponent {/* . . . */}
Pranam BhatPosted Jul 22, 2022, 2:08 AM EDT

