angular.js - angularjs interacting with backend
为情所困
为情所困 2017-05-15 17:00:15
0
2
664

Using Angular as a front-end page, how to interact with the back-end (the back-end uses the Flask framework)? For example, how does the front end transmit data to the back end, and how does the back end get the data and transmit it to the front end?

为情所困
为情所困

reply all(2)
phpcn_u1582

json format $http service

巴扎黑

Usually inject $http service and interact with the background through get/post

module.controller("YourCtrl", [$scope, $http,
    function(scope, http) {
    // your controller code here:
    }])
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template