Skip to content

Instantly share code, notes, and snippets.

@robwormald robwormald/sdk.js Secret
Created Dec 27, 2014

Embed
What would you like to do?
//angularized wrapper for JiffJS, gets concat'ed to built file for ez angular integratation...
var NgJiff = angular.module('JiffSDK',[]);
window.name = 'NG_DEFER_BOOTSTRAP!';
System.import('lib/jiff').then(function(jiffModule){
angular.module('JiffSDK',[]).provider('Jiff',function(){
var Jiff = jiffModule.load();
Jiff.$get = function(){
return Jiff;
}
return Jiff;
});
})
.then(function(){
angular.element(document).ready(function(){
angular.resumeBootstrap();
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.