angular-sails
- 授权协议: MIT
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: https://github.com/janpantel/angular-sails
软件介绍
angular-sails 是使用 Sails Socket.io API 的 AngularJS 模块。
据说,用了 Angular-sails,从此告别 Ajax!
安装
bower install angular-sails
使用示例
var app = angular.module("MyApp", ['ngSails']);
//OPTIONAL! Set socket URL!
app.config(['$sailsProvider', function ($sailsProvider) {
$sailsProvider.url = 'http://foo.bar';
}]);
app.controller("FooController", function ($scope, $sails) {
$scope.bars = [];
(function () {
$sails.get("/bars")
.success(function (data) {
$scope.bars = data;
})
.error(function (data) {
alert('Houston, we got a problem!');
});
$sails.on("message", function (message) {
if (message.verb === "create") {
$scope.bars.push(message.data);
}
});
}());
});
Mathematica Cookbook
Sal Mangano / O'Reilly Media / 2009 / GBP 51.99
As the leading software application for symbolic mathematics, Mathematica is standard in many environments that rely on math, such as science, engineering, financial analysis, software development, an......一起来看看 《Mathematica Cookbook》 这本书的介绍吧!
