1.0.3 • Published 8 years ago

angular-nl2br-filter v1.0.3

Weekly downloads
264
License
MIT
Repository
github
Last release
8 years ago

angular-nl2br-filter Build Status

Angular 1.x filter that converts newlines to <br>-tags.

Install

NPM:

$ npm install --save angular-nl2br-filter

Bower:

$ bower install --save angular-nl2br-filter 

Usage

  1. Add nl2br-filter as a dependency to your module: angular.module('app', ['nl2br-filter'])
  2. Use ng-bind-html and the nl2br filter to show a string with newlines: <p ng-bind-html="testString | nl2br"></p>

There's also a small demo for this: demo.html.

License

MIT © Stefan Dietz

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

0.0.0

8 years ago