【文件属性】:
文件名称:angular-rest:使用 Angular 创建休息应用程序的助手
文件大小:8KB
文件格式:ZIP
更新时间:2021-06-07 18:38:16
JavaScript
显现
angular-rest 是一个凉亭组件,可帮助您处理 REST 应用程序。 它使用全局配置来轻松添加新资源。 它使用 $http。
#如何使用它安装它
bower install angular-rest --save
将其添加到您的主脚本中:
angular
. module ( 'myApplication' , [ ... , 'RestModule' ] )
. config ( [ 'restProvider' , function ( restProvider ) {
//Configuration of REST global path
restProvider . restPath ( '/rest' ) ;
} ) ;
并创建您的服务:
angular
. module ( 'myApplication' )
.
【文件预览】:
angular-rest-master
----bower.json(763B)
----src()
--------rest-main.js(845B)
--------rest-service.js(5KB)
----gulpfile.js(1KB)
----README.md(3KB)
----dist()
--------rest.js(6KB)
--------rest-min.js(2KB)
----.gitignore(39B)
----package.json(515B)