Skip to content

Commit 3115f7d

Browse files
author
Ales Rechtorik
committed
change rows in textarea demo to by dynamic
1 parent 54105f1 commit 3115f7d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/demo-app/input/input-demo.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ <h4>With `rows` explicitly set</h4>
9393
placeholder="Textarea with autosize"
9494
class="demo-full-width"
9595
autosize
96-
rows="8"
96+
[rows]="rows"
9797
value="Hello world. How are you?">
9898
</md-textarea>
9999
</div>

src/demo-app/input/input-demo.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export class InputDemo {
2121
{ value: 40 },
2222
{ value: 50 },
2323
];
24+
rows = 8;
2425

2526
addABunch(n: number) {
2627
for (let x = 0; x < n; x++) {

0 commit comments

Comments
 (0)