@evan.network/ui-angular-core
Version:
The angular-core operates as an global and central library for the evan.network Angular 5 frontend development. Using this project you will be able to to the following things:
43 lines (42 loc) • 1.92 kB
TypeScript
import { // ionic-angular
Injector, ComponentFactoryResolver, ApplicationRef } from 'angular-libs';
import { SingletonService } from '../singleton-service';
import { EvanTranslationService } from './translate';
import { EvanUtilService } from '../utils';
/**************************************************************************************************/
/**
* Service that handles components within modals.
*
* @class Injectable EvanModalService
*/
export declare class EvanModalService {
private appRef;
private factoryResolver;
private injector;
private singleton;
private translateService;
private utils;
/**
* require dependencies
*/
constructor(appRef: ApplicationRef, factoryResolver: ComponentFactoryResolver, injector: Injector, singleton: SingletonService, translateService: EvanTranslationService, utils: EvanUtilService);
/**
* Creates a modal using an component.
*
* @param {Component} component component to show in the modal
* @param {any} payload payload that should be applied to the
* component[this]
* @param {boolean} evanModalAnimation a modal dialog that uses .evan-modal internally
* @return {Promise<any>} modal that is resolved on modal reject / resolve
*/
createModal(component: any, payload: any, evanModalAnimation?: boolean): Promise<any>;
/**
* Modal wrapper for the angular-core BigPictureDialog component.
*
* @param {string} alertTitle title of the alert
* @param {string} alertText text of the alert
* @param {string} img url / base64 of a img
* @return {Promise<any>} modal that is resolved on modal reject / resolv
*/
showBigPicture(alertTitle: any, alertText: any, img: any): Promise<any>;
}