npm.io
0.0.1-beta.8 • Published 9 years ago

@tangential/asciidoctor-panel

Licence
MIT
Version
0.0.1-beta.8
Deps
0
Size
117 kB
Vulns
0
Weekly
0
Stars
6

AsciiDoctor Panel

An Angular2 component for displaying embedded AsciiDoctor content.

Installation

> npm install --save asciidoctor.js @tangential/asciidoctor-panel

Dependencies

Use

Somewhere in your code, prior to loading the Module, you will need to load the AsciiDoctor.js file:


In your module (e.g.app.module.ts):


// import the module
import {TanjAsciidoctorPanelModule} from '@tangential/asciidoctor-panel';

// and register it as an import: 
@NgModule({
  declarations: [
    AppComponent,
    ...
  ],
  imports: [
    AsciidoctorPanelModule,
    ...
  ],
  entryComponents: [AppComponent],
  bootstrap: [AppComponent]
})

And reference it in your component:

<mat-card>
  <tanj-asciidoctor-panel style="white-space:normal;overflow-wrap: normal;overflow: auto" [content]="asciidoctorContent"></tanj-asciidoctor-panel>
</mat-card>

Keywords