我已经使用AngularJS,Bootstrap,HTML,CSS制作了Web应用程序GUI。
后端团队正在开发C编程API。
因此,我在$ http请求中发送的路由(从工厂发送)将如何与C编程API(控制器)通信以获取数据或执行相关操作。
谢谢!
最佳答案
您只需要URI,异步请求如下所示:
$http.get('URI goes here').then(
function (response) {
//success
vm.data = response;
},
function (response) {
//fail
console.log("error");
}
);