Reusable module for interacting the climb.social public API.
Angular
, obviously, but that's it.
Via NPM:
$ npm install angular-climb --save
Or bower:
$ bower install angular-climb --save
Configure your Climb feed in the Climb admin UI. Note the feedId
.
Add the module to your app dependencies:
var angular = require('angular');
angular.module('myApp', [
require('angular-climb')
]);
Use the service whenever you want it:
function controller(Climb) {
var vm = this;
var FEED_ID = '7216e32607f244179f5c51350a2ee2c8';
Climb.getFeed(FEED_ID).then(function(items) {
vm.social = items;
});
}
See the climb demo in this repo for an example of how to use.
Download the project dependencies:
$ bower install
$ npm install
Then run with grunt:
$ grunt karma:unit