I'm using angularjs and angular ui router.
I want to use controller except default controller for this state
when I add ng-controller to div I have this error
angular.min.js:119 Error: [$injector:unpr] http://errors.angular.org/1.5.11/$injector/unpr?p0=myPicturesProvider%20%3C-%20myPictures%20%3C-%20MyPicturesController
at /angular/angular.min.js:6:424
at /angular/angular.min.js:43:219
at Object.d [as get] (/angular/angular.min.js:41:1)
at /angular/angular.min.js:43:281
at d (/angular/angular.min.js:41:1)
at e (/angular/angular.min.js:41:242)
at Object.instantiate (/angular.min.js:42:77)
at /angular/angular.min.js:91:374
at Object.<anonymous> (/angular/router/angular-ui-router.min.js:11:15568)
at/angular/angular.min.js:16:71 <ui-view class="ng-scope">How can I use ng-controller?
I'm using angularjs and angular ui router. I want to use controller except default controller for this state when I add ng-controller to div I have this error
view:
routes.js: