文本区域后的离子按钮不会显示

Ionic button after text area won’t show up

不知道是不是bug。在我用谷歌搜索后,我发现有人也有这个问题。

代码如下:

<div class="list list-inset">
    <label class="item item-input">
        <input type="text" placeholder="Id" ng-model="Id"/>
    </label>
    <label class="item item-input">
        <input type="text" placeholder="Title" ng-model="title"/>
    </label>
    <label class="item item-input">
        <textarea placeholder="Description" rows="15" ng-model="description"/>
    </label>
    <button class="button button-clear">Submit</button>
</div>
<textarea placeholder="Description"  rows="15" ng-model="description" />

这个文本区域似乎是自动关闭的。然而,情况并非如此,因为 <textarea>s 需要一个结束标记 </textarea>,否则开始标记之后的所有内容都将被解释为文本区域的内容,而不是被解析为 HTML。

所以正确的写法是:

<textarea placeholder="Description" rows="15" ng-model="description"></textarea>