import { Injectable } from '@angular/core' ; import { App } from '../app/app' ; import { Config } from '../../config/config' ; import { Loading } from './loading' ; import { LoadingOptions } from './loading-options' ; name description usage advanced demo see {@link /docs/api/components/spinner/Spinner Spinner API Docs} @ Injectable ( ) export class LoadingController { constructor ( private _app , public config ) { } param { LoadingOptions } opts returns { Loading } create ( opts = { } ) { return new Loading ( this . _app , opts , this . config ) ; } }