title: Unknown provider: $scopeProvider
body: <p>I have created an application in AngularJS with having <strong><a href="https://scotch.io/tutorials/making-skinny-angularjs-controllers#disqus_thread" rel="nofollow">Skinny AngularJS Controllers</a></strong>. The application is working fine but the issue is that when I tried to access another controller through by using <code>$controller('ControllerOne')</code> I am getting the following exception.</p>
  
  <p><strong><a href="http://jsfiddle.net/oqnrrL8y/" rel="nofollow">JSFiddle</a></strong></p>
  
  <pre><code>Error: [$injector:unpr] Unknown provider: $scopeProvider &lt;- $scope
  http://errors.angularjs.org/1.2.1/$injector/unpr?p0=%24scopeProvider%20%3C-%20%24scope
      at http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.1/angular.js:78:12
      at http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.1/angular.js:3451:19
      at Object.getService [as get] (http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.1/angular.js:3578:39)
      at http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.1/angular.js:3456:45
      at getService (http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.1/angular.js:3578:39)
      at invoke (http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.1/angular.js:3600:13)
      at Object.instantiate (http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.1/angular.js:3636:23)
      at $get (http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.1/angular.js:6639:28)
      at new &lt;anonymous&gt; (http://fiddle.jshell.net/_display/:47:22)
      at invoke (http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.1/angular.js:3624:28)
  </code></pre>
  
  <p>My code is as given below</p>
  
  <pre><code>var mainApp = angular.module('mainApp', ['firstApp', 'secondApp']);
  
  var firstApp = angular.module('firstApp', []);
  firstApp.controller('ControllerOne', function ($scope) {
      this.name = "Messi";
  });
  
  var secondApp = angular.module('secondApp', []);
  secondApp.controller('ControllerTwo', function ($scope, $controller) {
      $scope.ctrlOne = $controller('ControllerOne');
  });
  </code></pre>
  
  <p>Can anyone please tell me some solution for this</p>