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 it in my app config like so:
'use strict';
angular.module('myApp', [
        'ngRoute',
        'myProvider'
    ])
    .config(function ($routeProvider, myProvider) {
        $routeProvider
            .when('/', {
                templateUrl: 'views/main.html',
                controller: 'MainCtrl'
            })
            .otherwise({
                redirectTo: '/'
            });
    });
And I get the following error:
Uncaught Error: [$injector:modulerr] Failed to instantiate module lpSocialApp due to:
Error: [$injector:modulerr] Failed to instantiate module myProvider due to:
Error: [$injector:nomod] Module 'myProvider' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
What am I missing?
 
     
     
    