File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
v7/action-sheet/role-info-on-dismiss/angular
v8/action-sheet/role-info-on-dismiss/angular Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 11``` ts
22import { Component } from ' @angular/core' ;
33import { IonActionSheet , IonButton } from ' @ionic/angular/standalone' ;
4+ import type { OverlayEventDetail } from ' @ionic/core' ;
45
56@Component ({
67 selector: ' app-example' ,
@@ -34,7 +35,8 @@ export class ExampleComponent {
3435
3536 constructor () {}
3637
37- logResult(ev ) {
38+ logResult(event : Event ) {
39+ const ev = event as CustomEvent <OverlayEventDetail <string >>;
3840 console .log (JSON .stringify (ev .detail , null , 2 ));
3941 }
4042}
Original file line number Diff line number Diff line change 11``` ts
22import { Component } from ' @angular/core' ;
33import { IonActionSheet , IonButton } from ' @ionic/angular/standalone' ;
4+ import type { OverlayEventDetail } from ' @ionic/core' ;
45
56@Component ({
67 selector: ' app-example' ,
@@ -34,7 +35,8 @@ export class ExampleComponent {
3435
3536 constructor () {}
3637
37- logResult(ev ) {
38+ logResult(event : Event ) {
39+ const ev = event as CustomEvent <OverlayEventDetail <string >>;
3840 console .log (JSON .stringify (ev .detail , null , 2 ));
3941 }
4042}
You can’t perform that action at this time.
0 commit comments