Skip to content

Instantly share code, notes, and snippets.

var myApp = angular.module('myApp', []);
myApp.provider('helloWorld', function() {
// In the provider function, you cannot inject any
// service or factory. This can only be done at the
// "$get" method.
this.name = 'Default';
this.$get = function() {