title: How to differentiate between namespaces of injected modules in AngularJS?
body: <p>Lets say I have a controller, which depends on two modules that both contain a directive or a service with the same name. Can I specify which one exactly should be used?</p>
  
  <pre class="lang-js prettyprint-override"><code>angular.module('myApp', ['secondModule', 'thirdModule'])
      .controller('Ctrl1', ['$scope', 'myService', function(scope, myService){
          scope.user = myService.getUser();   
          console.log(myService); 
  }]);
  </code></pre>
  
  <p>In this case both <strong>secondModule</strong> and <strong>thirdModule</strong> have a service called <strong>myService</strong>. But only the one from the <strong>thirdModule</strong> will be used in this example. I tried putting something like <strong>secondModule.myService</strong> as a dependency for <strong>Ctrl1</strong>, but it wouldn't work. Is there some kind of namespacing in AngularJS?</p>