Angular GCMS使用Google表格作为后端存储
angular-gcms:使用谷歌电子表格作为后端内容存储库
angular-gcms使用谷歌电子表格作为后端内容存储库。以下是快速开始的步骤。
安装:
bower install jlovison/angular-gcms
将其添加到项目中:
angular.module('YourModule',['OtherStuff','jlovison.gcms'])
假设您已发布一个ID为“12345”的谷歌电子表格,包含两列:“title”和“post”,您可以通过以下方式加载电子表格数据:
angular.module('YourApp')
.controller('YourController',function($scope,GcmsService){
GcmsService.get(
'12345',//电子表格ID
['title','post']//数据列
);
});
下载地址
用户评论