angularjs - Angular 2 and how to show break lines properly -
i have no idea how this. have list of objects 1 of properties description
, value has break lines
.
i'm using normal way print in html, take below:
<div class="row" *ngfor="let item of items"> <p>{{item.description}}</p> </div>
and in result can't see break line, see description below:
line 1 ` ` line 2 ` ` line 3
and should like:
line 1 line 2 line 3
any idea how solve it?
the   iso chracter same space shouldnt use write break lines can use br tag , in in binding use [innerhtml] ="ítem.description"
Comments
Post a Comment