ngx-md
Version:
[![Build Status][cirrus-ci-badge]][cirrus-ci-badge-url] [![npm][circleci-badge-url]][circleci-url] [![version][npm-badge-url]][npm-url] [![npm][license-badge-url]][license-url] [![npm][opencollective]][opencollective] [ • 1.72 kB
TypeScript
import { ElementRef, AfterViewInit, EventEmitter } from '@angular/core';
import { NgxMdService } from './ngx-md.service';
import * as i0 from "@angular/core";
export declare class NgxMdComponent implements AfterViewInit {
_mdService: NgxMdService;
_el: ElementRef;
platformId: string;
_path: string;
_data: string;
_md: any;
_ext: string;
changeLog: string[];
error: EventEmitter<any>;
loaded: EventEmitter<any>;
rendered: EventEmitter<any>;
constructor(_mdService: NgxMdService, _el: ElementRef, platformId: string);
set path(value: string);
set data(value: string);
/**
* Boolean indicating if the markdown content should be sanitized to avoid script injections
*/
sanitizeHtml: boolean;
onDataChange(data: string): void;
/**
* After view init
*/
ngAfterViewInit(): void;
processRaw(): void;
/**
* get remote conent;
*/
onPathChange(): void;
/**
* catch http error
*/
private handleError;
/**
* Prepare string
*/
prepare(raw: string): string;
/**
* Trim left whitespace
*/
private trimLeft;
/**
* Use Prism to highlight code snippets only on the browser
*/
private highlightContent;
static ɵfac: i0.ɵɵFactoryDeclaration<NgxMdComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NgxMdComponent, "markdown,[Markdown],ngx-md,[NgxMd]", never, { "path": { "alias": "path"; "required": false; }; "data": { "alias": "data"; "required": false; }; "sanitizeHtml": { "alias": "sanitizeHtml"; "required": false; }; }, { "error": "error"; "loaded": "loaded"; "rendered": "rendered"; }, never, ["*"], false, never>;
}