open(viewContainer) {
        let /** @type {?} */ context = this.toJSON();
        if (!(context.modal instanceof Modal$1)) {
            return /** @type {?} */ (Promise.reject(new Error('Configuration Error: modal service not set.')));
        }
        this.$$beforeOpen(context);
        let /** @type {?} */ overlayConfig = {
            context: context,
            renderer: new JSNativeModalRenderer(),
            viewContainer: viewContainer
        };
        return context.modal.open(context.component, overlayConfig);
    }
/**
     * Open a modal window based on the configuration of this config instance.
     * @param {?=} viewContainer If set opens the modal inside the supplied viewContainer
     * @return {?}
     */
Open a modal window based on the configuration of this config instance.
@param {?=} viewContainer If set opens the modal inside the supplied viewContainer
@return {?}
Open a modal window based on the configuration of this config instance . @param { ? = } viewContainer If set opens the modal inside the supplied viewContainer @return { ? }
open(viewContainer) {
        let  context = this.toJSON();
        if (!(context.modal instanceof Modal$1)) {
            return  (Promise.reject(new Error('Configuration Error: modal service not set.')));
        }
        this.$$beforeOpen(context);
        let  overlayConfig = {
            context: context,
            renderer: new JSNativeModalRenderer(),
            viewContainer: viewContainer
        };
        return context.modal.open(context.component, overlayConfig);
    }
open ( viewContainer ) { let context = this . toJSON ( ) ; if ( ! ( context . modal instanceof Modal$1 ) ) { return ( Promise . reject ( new Error ( 'Configuration Error: modal service not set.' ) ) ) ; } this . $$beforeOpen ( context ) ; let overlayConfig = { context : context , renderer : new JSNativeModalRenderer ( ) , viewContainer : viewContainer } ; return context . modal . open ( context . component , overlayConfig ) ; }
Open a modal window based on the configuration of this config instance.
Open a modal window based on the configuration of this config instance .
/** @type {?} */ /** @type {?} */ /** @type {?} */