Android 如何将文本(字符串)插入离子文本区域?
我已经试过了: example.html:Android 如何将文本(字符串)插入离子文本区域?,android,typescript,ionic-framework,ionic3,Android,Typescript,Ionic Framework,Ionic3,我已经试过了: example.html: <ion-textarea placeholder="Enter your thoughts" type="text">Test: {{ textboxContent }} </ion-textarea> Test:{{textboxContent} 字符串textboxContent中填充了“Test” 文本区域中没有任何内容。当然,除了占位符之外。您可以使用ngModel来实现这一点 <ion-textarea
<ion-textarea placeholder="Enter your thoughts" type="text">Test: {{ textboxContent }} </ion-textarea>
Test:{{textboxContent}
字符串
textboxContent
中填充了“Test”
文本区域中没有任何内容。当然,除了占位符之外。您可以使用ngModel来实现这一点
<ion-textarea placeholder="Enter your thoughts" type="text" [(ngModel)]="value">Test: {{ textboxContent }} </ion-textarea>
export class Page{
value:string;
constructor(){
this.value="some value you want to fill"
}
}