docs: make toggleImage arguments optional in AngularJS quick reference (#28592)
PR Close #28592
This commit is contained in:
parent
05a14f8a8b
commit
457e07ccb1
|
@ -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';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue