1 | import * as i0 from '@angular/core';
|
---|
2 | import { Directive, NgModule } from '@angular/core';
|
---|
3 | import { CommonModule } from '@angular/common';
|
---|
4 |
|
---|
5 | class CodeHighlighter {
|
---|
6 | constructor(el) {
|
---|
7 | this.el = el;
|
---|
8 | }
|
---|
9 | ngAfterViewInit() {
|
---|
10 | if (window['Prism']) {
|
---|
11 | window['Prism'].highlightElement(this.el.nativeElement);
|
---|
12 | }
|
---|
13 | }
|
---|
14 | }
|
---|
15 | CodeHighlighter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: CodeHighlighter, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
---|
16 | CodeHighlighter.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0", type: CodeHighlighter, selector: "[pCode]", host: { classAttribute: "p-element" }, ngImport: i0 });
|
---|
17 | i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: CodeHighlighter, decorators: [{
|
---|
18 | type: Directive,
|
---|
19 | args: [{
|
---|
20 | selector: '[pCode]',
|
---|
21 | host: {
|
---|
22 | 'class': 'p-element'
|
---|
23 | }
|
---|
24 | }]
|
---|
25 | }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
|
---|
26 | class CodeHighlighterModule {
|
---|
27 | }
|
---|
28 | CodeHighlighterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: CodeHighlighterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
---|
29 | CodeHighlighterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: CodeHighlighterModule, declarations: [CodeHighlighter], imports: [CommonModule], exports: [CodeHighlighter] });
|
---|
30 | CodeHighlighterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: CodeHighlighterModule, imports: [[CommonModule]] });
|
---|
31 | i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: CodeHighlighterModule, decorators: [{
|
---|
32 | type: NgModule,
|
---|
33 | args: [{
|
---|
34 | imports: [CommonModule],
|
---|
35 | exports: [CodeHighlighter],
|
---|
36 | declarations: [CodeHighlighter]
|
---|
37 | }]
|
---|
38 | }] });
|
---|
39 |
|
---|
40 | /**
|
---|
41 | * Generated bundle index. Do not edit.
|
---|
42 | */
|
---|
43 |
|
---|
44 | export { CodeHighlighter, CodeHighlighterModule };
|
---|