title: ionic Bind maxlength dynamically ionic2
body: <p>My  requirement  is to  bind  <code>maxlength</code> to <code>ion-input</code>. I  have tried using  interpolation concept  to  bind.</p>
  
  <p>My html </p>
  
  <pre><code> &lt;ion-list &gt;
      &lt;ion-item *ngFor=" let a of arr_label"&gt;
        &lt;ion-label floating&gt;{{a.lblname}}&lt;/ion-label&gt;
        &lt;ion-input maxlength={{a.maxlent}}   [(ngModel)]="a.Val" type="text"&gt;&lt;/ion-input&gt;
  &lt;/ion-item&gt;
  </code></pre>
  
  <p>.ts </p>
  
  <pre><code>arr_label:any[]=[];
  this.arr_label.push({maxlent:10});
  </code></pre>
  
  <p>Is there  something  am  missing... any  help  is  quite  appreciable.</p>