ngx-dynamic-hooks
Version:
Automatically insert live Angular components into a dynamic string of content (based on their selector or any pattern of your choice) and render the result in the DOM.
27 lines (26 loc) • 869 B
TypeScript
import { ParseOptions } from '../settings/options';
import * as i0 from "@angular/core";
/**
* A utility service to print logs and warnings
*/
export declare class Logger {
private platformId;
constructor(platformId: string);
log(content: any[], options: ParseOptions): void;
warn(content: any[], options: ParseOptions): void;
error(content: any[], options: ParseOptions): void;
/**
* Logs an array of content according to the submitted options
*
* @param content - The content to log
* @param options - The current ParseOptions
* @param method - The console method to use
*/
private handleLog;
/**
* Use local method that is easier to mock in tests
*/
private isDevMode;
static ɵfac: i0.ɵɵFactoryDeclaration<Logger, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<Logger>;
}