import { Injectable } from '@angular/core' ; import { App } from '../app/app' ; import { Config } from '../../config/config' ; import { Popover } from './popover' ; import { PopoverOptions } from './popover-options' ; import { DeepLinker } from '../../navigation/deep-linker' ; name description usage Component Component advanced demo @ Injectable ( ) export class PopoverController { constructor ( private _app , public config , private _deepLinker ) { } param { object } component param { object } data param { PopoverOptions } opts create ( component , data = { } , opts = { } ) { return new Popover ( this . _app , component , data , opts , this . config , this . _deepLinker ) ; } }