messages.component.html 242 Bytes EditWeb IDE 1 2 3 4 5 6 7 8 <div *ngIf="messageService.messages.length"> <h2>Messages</h2> <button class="clear" (click)="messageService.clear()">clear</button> <div *ngFor='let message of messageService.messages'> {{message}} </div> </div>