Skip to content

Instantly share code, notes, and snippets.

@elbuo8
Created August 12, 2014 22:54
Show Gist options
  • Save elbuo8/74f2445b149550c4fc29 to your computer and use it in GitHub Desktop.
Save elbuo8/74f2445b149550c4fc29 to your computer and use it in GitHub Desktop.
<html>
<body ng-controller="TestCtrl">
<script src="bower_components/angular/angular.min.js"></script>
<script src="src/sendgrid.js"></script>
<script>
var app = angular.module('app', ['sendgrid']);
app.config(['sendgrid', function(sendgridProvider) {
console.log('here');
}]);
app.controller('TestCtrl', ['$scope', 'sendgrid', function($scope, sendgrid) {
cconsole.log($scope);
console.log(new sendgrid.Email());
}]);
</script>
</body>
</html>
@cesarandreu
Copy link

var app = angular.module('app', ['sendgrid']);

app.config(['sendgridProvider', function(sendgridProvider) {
  console.log('here');
}]);

app.controller('TestCtrl', ['$scope', 'sendgrid', function($scope, sendgrid) {
console.log($scope);
console.log(new sendgrid.Email());
}]);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment