pk1914 pk1914 - 5 months ago 26
CSS Question

MEAN Stack Application Textarea

I am currently implementing an application with the MEAN stack and I want to have a page with several text boxes where a user can write and update his profile information.

<div class="form-group">
<input type="text"
class="form-control"
placeholder="Description"
ng-model="user.description">
</div>

<div class="form-group">
<input type="text"
class="form-control"
placeholder="First Name"
ng-model="user.firstName">
</div>


I currently have this (these two are just two fields, there are more following which are irrelevant) written. My problem is that this way, the description text box appears as only one line where I want it to be a multi-line text box.

I saw that the
textarea
keyword is used for that. However when I wrote:

<div class="form-group">
<textarea class="form-control"
placeholder="Description"
ng-model="user.description">
</div>


The text box indeed appeared as a textarea but all the following content disappeared.

Any help is welcome.

Thanks.

Answer

The error may be because of the missing </textarea> closing tag.

Comments