ngx-stacks-editor
Version:
An Angular wrapper for the Stacks Editor by StackOverflow
59 lines (53 loc) • 3.24 kB
JavaScript
import * as i0 from '@angular/core';
import { Component, ViewEncapsulation, Input, ViewChild, NgModule } from '@angular/core';
import { StacksEditor } from '@stackoverflow/stacks-editor';
import '@stackoverflow/stacks';
class NgxStacksEditorComponent {
constructor() { }
ngAfterViewInit() {
let stacksNativeElement = this.stacksEditor.nativeElement;
new StacksEditor(stacksNativeElement, this.content, this.options);
}
}
NgxStacksEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: NgxStacksEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
NgxStacksEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: NgxStacksEditorComponent, selector: "ngx-stacks-editor", inputs: { content: "content", options: "options" }, viewQueries: [{ propertyName: "stacksEditor", first: true, predicate: ["stacksEditor"], descendants: true }], ngImport: i0, template: `
<div #stacksEditor></div>
`, isInline: true, styles: ["@import\"@stackoverflow/stacks-editor/dist/styles.css\";@import\"@stackoverflow/stacks/dist/css/stacks.css\";\n"], encapsulation: i0.ViewEncapsulation.None });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: NgxStacksEditorComponent, decorators: [{
type: Component,
args: [{ selector: 'ngx-stacks-editor', template: `
<div #stacksEditor></div>
`, encapsulation: ViewEncapsulation.None, styles: ["@import\"@stackoverflow/stacks-editor/dist/styles.css\";@import\"@stackoverflow/stacks/dist/css/stacks.css\";\n"] }]
}], ctorParameters: function () { return []; }, propDecorators: { content: [{
type: Input
}], options: [{
type: Input
}], stacksEditor: [{
type: ViewChild,
args: ["stacksEditor"]
}] } });
class NgxStacksEditorModule {
}
NgxStacksEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: NgxStacksEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
NgxStacksEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: NgxStacksEditorModule, declarations: [NgxStacksEditorComponent], exports: [NgxStacksEditorComponent] });
NgxStacksEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: NgxStacksEditorModule });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: NgxStacksEditorModule, decorators: [{
type: NgModule,
args: [{
declarations: [
NgxStacksEditorComponent
],
imports: [],
exports: [
NgxStacksEditorComponent
]
}]
}] });
/*
* Public API Surface of ngx-stacks-editor
*/
/**
* Generated bundle index. Do not edit.
*/
export { NgxStacksEditorComponent, NgxStacksEditorModule };
//# sourceMappingURL=ngx-stacks-editor.mjs.map