README
NgxBr
Installation
npm i 2yy-ngx-br
Usage
In your component:
message = 'hoge\nfuga';
then, in your template:
<p [innerHTML]="message | ngxBr"></p>
should be:
<p>hoge<br>fuga</p>
![CI](https://github.com/2YY/ngx-br/workflows/CI/badge.svg) [![Maintainability](https://api.codeclimate.com/v1/badges/864dcdff5e2b8f2f409c/maintainability)](https://codeclimate.com/github/2YY/ngx-br/maintainability) [![Test Coverage](https://api.codeclima
<script type="module">
import yyNgxBr from 'https://cdn.skypack.dev/2yy-ngx-br';
</script>
npm i 2yy-ngx-br
In your component:
message = 'hoge\nfuga';
then, in your template:
<p [innerHTML]="message | ngxBr"></p>
should be:
<p>hoge<br>fuga</p>