Open History to see the last commit
1import { Component } from '@angular/core'
2import { DisplayComponent } from './display.component'
3import { IncrementComponent } from './increment.component'
4β
5@Component({
6 selector: 'app-root',
7 imports: [DisplayComponent, IncrementComponent],
8 template: `
9 <h1>How many of your friends like cats or dogs?</h1>
10 <p>
11 Press one of the buttons to add a counter of how many of your friends like
12 cats or dogs
13 </p>
14 <app-increment animal="dogs" />
15 <app-display animal="dogs" />
16 <app-increment animal="cats" />
17 <app-display animal="cats" />
18 `,
19})
20export class AppComponent {}