angular-nl2br
v1.0.2
Published
An angular filter that turns new lines into line breaks
Downloads
71
Readme
angular nl2br
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>