weaver-sdk-angular
v1.0.0-beta.1
Published
Weaver SDK for AngularJS
Downloads
4
Readme
Weaver SDK for AngularJS
Install
Bower
$ bower install weaver-sdk-angular --save
NPM
$ npm install weaver-sdk-angular --save
Usage
This module exposes the Weaver object as a provider, providing a safe way of loading the Weaver SDK in Angular.
Including it in your project
To include the SDK in your project take a look at the example below:
angular.module('myApp', [
'weaver.sdk', /* or require('weaver-sdk-angular') */
'myApp.MyCtrl'
])
.controller('MyCtrl', function(weaver) {
// You can now use the weaver instance here...
// For example: weaver.connect('someurl');
});
Read the documentation of the Weaver SDK JavaScript for more info on how to use the weaver instance.