title: How to add object value to style attributes in Angular 4
body: <p>I want to add style width, height, and colour in input tag.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;table&gt;
   &lt;td *ngFor="let y of x" &gt;
        &lt;input  type="{{y.cellNumber}}"  src="{{y.src}}"  value="{{y.name}}" height="{{y.height*2}}" width="{{y.width/2}}" style="height:{{y.height}}px;width:{{y.width}}px"&gt;    
   &lt;/td&gt; 
  &lt;/table&gt;    </code></pre>
  </div>
  </div>
  </p>
  
  <p>But inside the style am unable to set object value. Is there any other way to set object value inside the style within input tag.</p>