EVOLUTION-MANAGER
Edit File: noscp.html
<a href='https://github.com/angular/angular.js/edit/v1.3.x/docs/content/error/$controller/noscp.ngdoc?message=docs(error%2Fnoscp)%3A%20describe%20your%20change...' class='improve-docs btn btn-primary'><i class="glyphicon glyphicon-edit"> </i>Improve this Doc</a> <h1>Error: error:noscp <div><span class='hint'>Missing $scope object</span></div> </h1> <div> <pre class="minerr-errmsg" error-display="Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.">Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.</pre> </div> <h2>Description</h2> <div class="description"> <p>This error occurs when <a href="api/ng/service/$controller">$controller</a> service is called in order to instantiate a new controller but no scope is provided via <code>$scope</code> property of the locals map.</p> <p>Example of incorrect usage that leads to this error:</p> <pre><code>$controller(MyController); //or $controller(MyController, {scope: newScope}); </code></pre> <p>To fix the example above please provide a scope (using the <code>$scope</code> property in the locals object) to the $controller call:</p> <pre><code>$controller(MyController, {$scope: newScope}); </code></pre> <p>Please consult the <a href="api/ng/service/$controller">$controller</a> service api docs to learn more.</p> </div>