mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
fix(angular): fix overlays
This commit is contained in:
15
angular/src/util/overlay.ts
Normal file
15
angular/src/util/overlay.ts
Normal file
@ -0,0 +1,15 @@
|
||||
|
||||
import { proxyMethod } from '../util/util';
|
||||
|
||||
|
||||
export class OverlayBaseController<Opts, Overlay> {
|
||||
constructor(private ctrl: string) {}
|
||||
|
||||
create(opts?: Opts): Promise<Overlay> {
|
||||
return proxyMethod(this.ctrl, 'create', opts);
|
||||
}
|
||||
|
||||
dismiss(data?: any, role?: string, id = -1): Promise<void> {
|
||||
return proxyMethod(this.ctrl, 'dismiss', data, role, id);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user