angular-data
- 授权协议: MIT
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: http://angular-data.pseudobry.com/
- 软件文档: http://angular-data.pseudobry.com/documentation/guide/angular-data/overview
软件介绍
angular-data 是 AngularJS 的一个扩展,实现了数据存储和缓存的功能。
示例代码:
var app = angular.module('myApp', ['angular-data.DS']); app.factory('User', function (DS) { // Simplest resource definition return DS.defineResource('user'); }); app.controller('friendsCtrl', function ($scope, $routeParams, User) { // it's up to your server to know how to interpret this query // or you can teach angular-data how to understand your servers' query language var query = { where: { friendIds: { in: $routeParams.id } } }; User.find($routeParams.id); User.findAll(query); // My goodness this was easy User.bindOne($scope, 'me', $routeParams.id); User.bindAll($scope, 'friends', query); // Long form $scope.$watch(function () { return User.lastModified($routeParams.id); }, function () { $scope.me = User.get($routeParams.id); }); $scope.$watch(function () { // Changes when anything in the User collection is modified return User.lastModified(); }, function () { $scope.friends = User.filter(query); }); });
HTML 5 与 CSS 3 权威指南
陆凌牛 / 机械工业出版社华章公司 / 2011-4-7 / 69.00
如果你是一位有前瞻性的web前端工作者,那么你一定会从本书中受益,因为它就是专门为你打造的。 《HTML 5与CSS 3权威指南》内容系统而全面,详尽地讲解了html 5和css 3的所有新功能和新特性;技术新颖,所有知识点都紧跟html 5与css 3的最新发展动态(html 5和css 3仍在不断完善之中);实战性强(包含246个示例页面),不仅每个知识点都配有精心设计的小案例(便于动手......一起来看看 《HTML 5 与 CSS 3 权威指南》 这本书的介绍吧!