From 457e07ccb157e898ac23849886b9613b3b4d2be4 Mon Sep 17 00:00:00 2001 From: Brandon Date: Thu, 7 Feb 2019 16:49:17 +0000 Subject: [PATCH] docs: make toggleImage arguments optional in AngularJS quick reference (#28592) PR Close #28592 --- .../examples/ajs-quick-reference/src/app/app.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aio/content/examples/ajs-quick-reference/src/app/app.component.ts b/aio/content/examples/ajs-quick-reference/src/app/app.component.ts index 6c5de8624e..de4b412cad 100644 --- a/aio/content/examples/ajs-quick-reference/src/app/app.component.ts +++ b/aio/content/examples/ajs-quick-reference/src/app/app.component.ts @@ -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'; }