viewing paste Unknown #16929 | Javascript

Posted on the
1 2 3 4 5 6 7 8 9
myMod.config(function($provide) {
  $provide.provider('greeting', function() {
    this.$get = function() {
      return function(name) {
        alert("Hello, " + name);
      };
    };
  });
});
Viewed 286 times, submitted by unknown.