mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-11 21:33:02 -05:00
feat(challenge19): create challenge 19 with testing output and input
This commit is contained in:
@@ -1,13 +1,16 @@
|
||||
import { NxWelcomeComponent } from './nx-welcome.component';
|
||||
import { Component } from '@angular/core';
|
||||
import { CounterComponent } from './counter.component';
|
||||
|
||||
@Component({
|
||||
standalone: true,
|
||||
imports: [NxWelcomeComponent],
|
||||
imports: [CounterComponent],
|
||||
selector: 'app-root',
|
||||
template: ` <app-nx-welcome></app-nx-welcome> `,
|
||||
styles: [],
|
||||
template: `
|
||||
<app-counter [initialValue]="10" (send)="log($event)"></app-counter>
|
||||
`,
|
||||
})
|
||||
export class AppComponent {
|
||||
title = 'testing-input-output';
|
||||
log(counter: number) {
|
||||
console.log('output log', counter);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user