import { Injectable } from '@angular/core' ; import { Alert } from './alert' ; import { App } from '../app/app' ; import { AlertOptions } from './alert-options' ; import { Config } from '../../config/config' ; name description usage advanced demo @ Injectable ( ) export class AlertController { constructor ( private _app , public config ) { } param { AlertOptions } opts create ( opts = { } ) { return new Alert ( this . _app , opts , this . config ) ; } }