Normally, when I use Django's Form API to display model form, I will pass the form object to the template via django.template.Context and render its fields using Django's templating language:
<form role="form" method="post">
{% csrf_token %}
{{ form.non_field_errors }}
<div class="form-group">
<label for="id_content">Content</label>
{{ form.content }}
</div>
<button type="submit" class="btn btn-default">Submit</button>
</form>
The form.content will be rendered as
<textarea id="id_content" rows="10" cols="40" name="content" style="margin: 2px; width: 339px; height: 164px;"></textarea>
But now I want to use it with AngularJS, i.e. binding the input field to an ng-model
<textarea ng-model="content" id="id_content" rows="10" cols="40" name="content" style="margin: 2px; width: 339px; height: 164px;"></textarea>
Is there anyway to achieve this?