Skip to content

Instantly share code, notes, and snippets.

@sp90
Last active September 7, 2016 11:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sp90/a0b718646e83d004d1678a4fa3eea384 to your computer and use it in GitHub Desktop.
Save sp90/a0b718646e83d004d1678a4fa3eea384 to your computer and use it in GitHub Desktop.
A small helper to hook up to horizon
(function() {
'use strict';
angular.module('myApp')
.factory('horizon', horizonFactory);
function horizonFactory() {
var horizon = Horizon({
host: 'localhost:8181',
secure: true,
lazyWrites: false,
authType: 'unauthenticated',
keepalive: 60,
})
return horizon;
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment