angular-nl2br

1.0.2 • Public • Published

angular nl2br

Build Status

An angular filter that turns new lines into line breaks

var m = angular.module('yourModule'  ['nl2br']);
 
m.controller('parrot', function($scope) {
  $scope.text = "AWWWWWK!\n\nPolly want a cracker?\n\nAWWWWK!"
});
<div ng-controller='parrot'>
  <p>{{text|nl2br}}</p>
</div>

License

MIT

Dependencies (0)

    Dev Dependencies (9)

    Package Sidebar

    Install

    npm i angular-nl2br

    Weekly Downloads

    136

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • demands