AngularJS - Injecting a Provider
问题 EDIT: using YEOMAN to scaffold my app, I have the following YEOMAN generated provider 'use strict'; angular.module('myApp') .provider('myProvider', function () { // Private variables var salutation = 'Hello'; // Private constructor function Greeter() { this.greet = function () { return salutation; }; } // Public API for configuration this.setSalutation = function (s) { salutation = s; }; // Method for instantiating this.$get = function () { return new Greeter(); }; }); and I'm trying inject