Encapsulation of cbuffer.js library for AngularJS
bower install angular-cbuffer
npm install angular-cbuffer
CBuffer depends on Angular only.
Add 'cbuffer' as a dependency to your app and inject CBuffer into your controller or service.
angular.module('myApp', ['cbuffer']);
angular.module('myApp').controller('MainCtrl', function($scope, CBuffer) {
// ...
});
Note: When adding CBuffer as a dependency it is not capitalized 'cbuffer' But when injected into your controller it is 'CBuffer'