parent
500b8cfa2d
commit
ab94f81ebb
@ -0,0 +1,17 @@ |
||||
import {Injectable} from '@angular/core'; |
||||
|
||||
|
||||
@Injectable() |
||||
export class PortalCleanupService { |
||||
|
||||
public portalCallbacks:Function[] = []; |
||||
|
||||
public add(callback:Function) { |
||||
this.portalCallbacks.push(callback); |
||||
} |
||||
|
||||
public clear() { |
||||
this.portalCallbacks.forEach((callback) => callback()); |
||||
this.portalCallbacks = []; |
||||
} |
||||
} |
Loading…
Reference in new issue