jrief / django-angular

Let AngularJS play well with Django
http://django-angular.awesto.com/
MIT License
1.23k stars 294 forks source link

Angular bound form with ng-init #190

Closed Bgeninatti closed 9 years ago

Bgeninatti commented 9 years ago

Hi everybody. This is a really good library and very useful. I was wondering if could use ng-init to make bound forms in angular, and avoid to use django-angular.js. May be overriding the widget for each form in NgModelFormMixin adding the class ng-init if the django form is bound.

thanks you very much.

jrief commented 9 years ago

Using ng-init is deprecated by the AngularJS team. I always try to avoid it as much as possible.

BTW. django-angular is shipped with special directives which can handle bound (in Django terms) forms. This directive then handles the initialization.

Bgeninatti commented 9 years ago

jrief. Thanks you for your response. I will try this.

regards