Socket
Book a DemoInstallSign in
Socket

documentations

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

documentations

Angular helpers for easily writing interactive articles

9.2.0
latest
Source
npmnpm
Version published
Weekly downloads
27
125%
Maintainers
1
Weekly downloads
 
Created
Source

documentations (for Angular)

Article editor and article visualization for Angular. Just property-bind the returned object of the article editor to the article visualization. This library is ready for usage with the Ivy rendering engine at version 9.0.2 and following. See this library in action here.

Build Status npm

See animation on github

Installation

Add the package to your angular project using

npm install documentations

The Editor

Make sure to have the DocuEditorModule imported.

@NgModule({
  imports: [ DocuEditorModule ]
})
export class ApplicationModule {}

The module provides a complete form with live rendering. It should integrate with your @angular/material configuration. In the template simply use the editor tag to create a complete form for the article.

<docu-editor (save)="saveDoc($event)"></docu-editor>

In the component you can define a function to handle the save event. For example like:

@Component({...})
export class AppComponent {
  doc: Documentation;

  saveDoc(doc: Documentation) {
    this.doc = doc;
  }
}

You addition to that you can also define a documentation input data binding to the docu-editor tag to patch the documentation form.

  • @Output() save($event): When the user saves the form, the save event will emit and contain the complete nested form.
  • @Input() documentation: Documentation: The user can patch the form with a previously created documentation.

The Article

Make sure to import the DocuModule.

@NgModule({
  imports: [ DocuModule ]
})
export class ApplicationModule {}

Then you can use the following tag to display the documentation

<docu-article [documentation]="doc"></docu-article>
  • @Input() documentation: Documentation interface.

Contributing

Contributions are welcome. Please stick to the Angular commit message guidelines as described in this document and describe your problems as detailed as possible.

Get in touch

twitter github

Hi, I am Felix,
Senior Software Engineer, Angular, RxJS and NgRX contributor. For direct contact please add me on twitter, github or visit my personal website.

avatar

Keywords

angular

FAQs

Package last updated on 29 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.