angular-sailsAngularJS 模块
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); } }); }()); });
评论
isaced-appstore-connect-sdkNode.js 模块
appstore-connect-sdk 是一个Node.js模块,使用TypeScript编写,为开发人员提供了一个方便的与 AppStoreConnectAPI 进行交互。该模块基于 OpenAP
isaced-appstore-connect-sdkNode.js 模块
0
PexpectPython 模块
Pexpect是一个用来启动子程序并对其进行自动控制的Python模块,它可以用来和像ssh、ftp、passwd、telnet等命令行程序进行自动交互。本文介绍Pexpect的主要用法和在实际应用中
PexpectPython 模块
0
node-githubNode.js 模块
node-github是Node.js对Github开放API的封装库。安装:$ npm install github使用方法:var GitHubApi = require("github");va
node-githubNode.js 模块
0
KillerRabbitTHGDispatch 模块
KillerRabbit 是 THGDispatch 模块,包括 GCD bits:Queues,
KillerRabbitTHGDispatch 模块
0