JSPM

ngx-multiline

1.2.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q33152F
  • License MIT

Plugin for Angular providing a pipe to display multiline text

Package Exports

  • ngx-multiline

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ngx-multiline) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ngx-multiline

build license issues

Plugin for Angular (>=7.2.0) providing a pipe to display multiline text.

Installation

For use in an existing angular project run npm install ngx-multiline.

Now add the installed module to your app.module.ts:

import { MultilineModule } from 'ngx-multiline';

// ...

@NgModule({
  // ...
  imports: [
    // ...
    MultilineModule
  ]
  // ...
})
export class AppModule { }

Usage

Anywhere in your template:

<div [innerHtml]="somePreformattedText | multiline"></div>

The pipe will transform every \n to a <br/>. Every \n\n will result in a </p><p>. The plugin does work for Windows end-of-line sequence \r\n as well.

License

MIT - Vinado - Built with ❤️ in Dresden