Angular - Advanced Patterns
Given the following Angular code, what will be the output displayed by the dumb component?
/* Smart component template */
<app-dumb [title]="pageTitle" (clicked)="onClicked()"></app-dumb>
/* Smart component class */
pageTitle = 'Hello World';
onClicked() { console.log('Clicked!'); }
/* Dumb component template */
<h1>{{ title }}</h1>
<button (click)="clicked.emit()">Click Me</button>
/* Dumb component class */
@Input() title: string;
@Output() clicked = new EventEmitter(); 