用angular做前端頁面,與後端是怎麼進(jìn)行互動的(後端採用的是flask框架)?比如說前端要用什麼方式傳輸資料到後端,後端怎麼拿取資料傳送給前端?
json格式$http服務(wù)啊
一般是注入$http service,透過get/post和後臺互動
module.controller("YourCtrl", [$scope, $http, function(scope, http) { // your controller code here: }])