1. 首页
  2. 考试认证
  3. 其它
  4. Angular GCMS使用Google表格作为后端存储

Angular GCMS使用Google表格作为后端存储

上传者: 2024-12-29 04:04:46上传 ZIP文件 7.53KB 热度 1次

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']//数据列
);
});
下载地址
用户评论