Shane February 2016

<br> between angular expression

I have an expression like this below:

<td>{{student.name}}<br>{{student.age}}<br>{{student.fathername}}</td>

While displaying it shows like:

shane<br>26<br>greg

Is it possible i can break this into like below in a single row itself:

shane
26
greg

Answers


Pankaj Parkar February 2016

Use ng-bind-html with string concatenation for rendering it.

ng-bind-html="student.name+ '<br>'+ student.age + '<br>' + student.fathername"

Post Status

Asked in February 2016
Viewed 3,678 times
Voted 6
Answered 1 times

Search




Leave an answer