docs: make toggleImage arguments optional in AngularJS quick reference (#28592)

PR Close #28592
This commit is contained in:
Brandon 2019-02-07 16:49:17 +00:00 committed by Miško Hevery
parent 05a14f8a8b
commit 457e07ccb1
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ export class AppComponent {
movies: IMovie[] = [];
showImage = true;
title = 'AngularJS to Angular Quick Ref Cookbook';
toggleImage(event: UIEvent) {
toggleImage(event?: UIEvent) {
this.showImage = !this.showImage;
this.eventType = (event && event.type) || 'not provided';
}