could it be

<td>
   <label {{item.label}}></label> 
   <span  {{item.units ? "(" + item.units + ")" : ""}}></span>

   <p {{item.description }}></p>

</td>


Maybe post a sample code on plunkr?

On Wednesday, January 10, 2018 at 3:51:13 PM UTC-8, Reza Razavipour wrote:
>
> I have inherited some "angular" code but I am not sure it is really taking 
> advantage of Angular facilities.
>
> So the component html is :
>
>
>
> <td>
>    <label [innerHtml]='item.label'></label> 
>    <span [innerHtml]='item.units ? "(" + item.units + ")" : ""'></span>
>    <p [innerHtml]='item.description'></p>
> </td>
>
>
>
>
> what is the "angular" way of eliminating the innerHtmls?
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to