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

50 lines (44 loc) 1.92 kB
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common')) : typeof define === 'function' && define.amd ? define('primeng/codehighlighter', ['exports', '@angular/core', '@angular/common'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.primeng = global.primeng || {}, global.primeng.codehighlighter = {}), global.ng.core, global.ng.common)); }(this, (function (exports, core, common) { 'use strict'; var CodeHighlighter = /** @class */ (function () { function CodeHighlighter(el) { this.el = el; } CodeHighlighter.prototype.ngAfterViewInit = function () { if (window['Prism']) { window['Prism'].highlightElement(this.el.nativeElement); } }; return CodeHighlighter; }()); CodeHighlighter.decorators = [ { type: core.Directive, args: [{ selector: '[pCode]' },] } ]; CodeHighlighter.ctorParameters = function () { return [ { type: core.ElementRef } ]; }; var CodeHighlighterModule = /** @class */ (function () { function CodeHighlighterModule() { } return CodeHighlighterModule; }()); CodeHighlighterModule.decorators = [ { type: core.NgModule, args: [{ imports: [common.CommonModule], exports: [CodeHighlighter], declarations: [CodeHighlighter] },] } ]; /** * Generated bundle index. Do not edit. */ exports.CodeHighlighter = CodeHighlighter; exports.CodeHighlighterModule = CodeHighlighterModule; Object.defineProperty(exports, '__esModule', { value: true }); }))); //# sourceMappingURL=primeng-codehighlighter.umd.js.map