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