Are there any tripartite data binding structures between the DOM, JavaScript, and the server database for AngularJS and Django?

One of the functions that AngularJS aficionados calls is the two-way data binding between the contents of the DOM and the JavaScript data that the framework offers.

I am currently working on several training projects integrating AngularJS and Django, and one of the causes of pain is that the AngularJS problem solves between data in JavaScript and the DOM view is not immediately resolved to pair AngularJS and Django. Ergo, the coordinator of AngularJS and Django (AFAICT as a newbie to AngularJS), includes a type of programming that is common in jQuery DOM manipulations and Angular seems to be written to eliminate the need. This is great for learning, but prompts me to ask: "Has anyone tried to do for AngularJS + Django what AngularJS and Django individually offer developers, namely, eliminating the need for this kind of stitching code?" AngularJS talks in more detail about "Let two-way binding do the job," but Django like "Deadline Web Perfectionist Infrastructure seems to be designed to reduce manual labor.

I am currently creating JSON to send to the client, but I was wondering if there are any projects to coordinate AngularJS with Django.

+4
source share
2 answers

Perhaps you should take a look at: https://github.com/jrief/django-angular In their presentation, they give an example of a three-way data binding: http://djangoconf.aws.awesto.com/slides .

This is accomplished with a combination of ajax calls (from corner to django) and websockets (from django to angularjs).

+1
source

JSON - . , Tastypie Django REST framework, .

0

Source: https://habr.com/ru/post/1534705/


All Articles