title: controller:ctrlfmt Badly formed controller string ''. Must match `__name__ as __id__` or `__name__`
body: <p>In rootes.js </p>
  
  <pre><code>.state('main.mydata', {
      url: '/my-data',
      templateUrl: '/app/views/pages/my-data.html',
      controller: 'mydataCtrl'
  })
  </code></pre>
  
  <p>Controller </p>
  
  <pre><code>.controller('mydataCtrl', ['$scope', '$state', '$http', function($scope, $state, $http) {
      console.log("Came to My Data")
  }])
  </code></pre>
  
  <p>when i call the page getting error in console </p>
  
  <pre><code>Error: angular.js?bundleVirtualPath=~%2fbundles%2fangular:13708 [$controller:ctrlfmt] Badly formed controller string ''. Must match `__name__ as __id__` or `__name__`.
  http://errors.angularjs.org/1.5.7/$controller/ctrlfmt?p0=
      at http://localhost:25282/Scripts/angular.js?bundleVirtualPath=%7eNaNbundles%fangular:68:12
      at $controller (http://localhost:25282/Scripts/angular.js?bundleVirtualPath=%7e%fbundles%fangular:10199:17)
      at setupControllers (http://localhost:25282/Scripts/angular.js?bundleVirtualPath=%7e%fbundles%fangular:9331:34)
      at nodeLinkFn (http://localhost:25282/Scripts/angular.js?bundleVirtualPath=%7e%fbundles%fangular:9116:32)
      at compositeLinkFn (http://localhost:25282/Scripts/angular.js?bundleVirtualPath=%7e%fbundles%fangular:8510:13)
      at nodeLinkFn (http://localhost:25282/Scripts/angular.js?bundleVirtualPath=%7e%fbundles%fangular:9210:24)
      at compositeLinkFn (http://localhost:25282/Scripts/angular.js?bundleVirtualPath=%7e%fbundles%fangular:8510:13)
      at compositeLinkFn (http://localhost:25282/Scripts/angular.js?bundleVirtualPath=%7e%fbundles%fangular:8513:13)
      at compositeLinkFn (http://localhost:25282/Scripts/angular.js?bundleVirtualPath=%7e%fbundles%fangular:8513:13)
      at publicLinkFn (http://localhost:25282/Scripts/angular.js?bundleVirtualPath=%7e%fbundles%fangular:8390:30)
  </code></pre>
  
  <p>What may be the issue?</p>