title: In Angular JS, How to pass value to provider?
body: <p>For some reasons, I want to pass  masterapp.value ('mastervalue' , 'XYZ') to provider. How to do that ? Below approach throw error. </p>
  
  <pre><code>var masterapp= angular.module('masterapp',[]);
  
  masterapp.value ('mastervalue' , 'XYZ');
  
  masterapp.provider('masterprovider', ['mastervalue', function(mastervalue) {
  
      this.myFn = function() {
          return mastervalue;
      };
  
   }]);
  </code></pre>