Ion-textarea cannot bind rows attribute like [rows]="rows"

I can use ion-textarea and specify the number of rows using rows attribute like rows=β€œ4”.

But cannot bind a variable to the rows attribute (build error will come up).

Is that any solution for that?

I had saw angular2-elastic but it is not what I need.

ionic info:

Cordova CLI: 6.5.0
Ionic Framework Version: 2.2.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.1.4
ios-deploy version: 1.9.1
ios-sim version: 5.0.13
OS: macOS Sierra
Node Version: v6.9.5
Xcode version: Xcode 8.2.1 Build version 8C1002

[attr.rows]=β€œrows” works for me

1 Like

Thanks. It works. :grinning: