Is there any reason this is not working ? :
this.categoriesId = $rootScope.categoriesList.map(function(obj) {
return obj.id;
}).join('<br />');
this.categoriesName = $rootScope.categoriesList.map(function(obj) {
return obj.name;
}).join('<br />');
and in the view :
<b>Categories ID :</b><br/><br/>
{{h.categoriesId}}
<hr>
<b>Categories Name :</b><br/><br/>
{{h.categoriesName}}
There is no line breaks, the <br />
isn't interpreted.
How can I work around this ?
` is displayed as text ? – Hacketo Feb 22 '16 at 14:00