angularjs - Angular ng-repeat handlebars and <br /> tag -


what proper way of doing this:

<tr ng-repeat="i in controller.model">     <td>{{i.var1}}<br />{{i.var2}}<br />{{i.var3}}</td> </tr> 

when renders, <br/> displayed plain text.

do have define variables each line has <br/> in , use $sce set trusted? seems awfully silly.

if find same question, please let me know search phrase used.

edit

when page rendered in dev tools, html looks this:

<td><p class="ng-binding">approved.&lt;br&gt;.&lt;br&gt;<br><br></p></td> 

it written in page:

<td><p>{{i.programinitiation}}<br>{{i.rejectreasoninitiation}}<br>{{i.rejectreasonotherinitiation}}</p></td> 

strange. i'll play around works in plunkr.

looks fine me. tried on plunker.

<table>       <tr ng-repeat="i in obj">       <td>{{i.name}}<br/>{{i.lastname}}<br/>{{i.lastname}}</td>       </tr> </table> 

check out here: http://plnkr.co/edit/brflvssz7izzzij2jqro


Comments

Popular posts from this blog

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -