UNPKG

primeng

Version:

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![npm version](https://badge.fury.io/js/primeng.svg)](https://badge.fury.io/js/primeng) [![npm downloads](https://img.shields.io/npm/dm/primeng.sv

38 lines (34 loc) 926 B
import { Directive, ElementRef, NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; class CodeHighlighter { constructor(el) { this.el = el; } ngAfterViewInit() { if (window['Prism']) { window['Prism'].highlightElement(this.el.nativeElement); } } } CodeHighlighter.decorators = [ { type: Directive, args: [{ selector: '[pCode]' },] } ]; CodeHighlighter.ctorParameters = () => [ { type: ElementRef } ]; class CodeHighlighterModule { } CodeHighlighterModule.decorators = [ { type: NgModule, args: [{ imports: [CommonModule], exports: [CodeHighlighter], declarations: [CodeHighlighter] },] } ]; /** * Generated bundle index. Do not edit. */ export { CodeHighlighter, CodeHighlighterModule }; //# sourceMappingURL=primeng-codehighlighter.js.map