node.js - Image upload with Angularjs -
i getting error when added 'ngfileupload' in module. have used
var app = angular.module('myapp', ['ngfileupload']);
and in route page:
angular.module('myapp') .config(function ($stateprovider) { $stateprovider .state('dashboard', { url: '/dashboard', templateurl: 'app/dashboard/dashboard.html', controller: 'dashboardctrl' }) });
error :
error: [$injector:modulerr] failed instantiate module umxapp due to: [$injector:unpr] unknown provider: $stateprovider http://errors.angularjs.org/1.4.1/$injector/unpr?p0=%24stateprovider minerr/<@http://localhost:9000/bower_components/angular/angular.js:68:12 createinjector/providercache.$injector<@http://localhost:9000/bower_components/angular/angular.js:4255:19 getservice@http://localhost:9000/bower_components/angular/angular.js:4402:39 invoke@http://localhost:9000/bower_components/angular/angular.js:4434:1 runinvokequeue@http://localhost:9000/bower_components/angular/angular.js:4349:11 loadmodules/<@http://localhost:9000/bower_components/angular/angular.js:4358:11 foreach@http://localhost:9000/bower_components/angular/angular.js:336:11 loadmodules@http://localhost:9000/bower_components/angular/angular.js:4339:5 createinjector@http://localhost:9000/bower_components/angular/angular.js:4265:11 bootstrap/dobootstrap@http://localhost:9000/bower_components/angular/angular.js:1621:20 bootstrap@http://localhost:9000/bower_components/angular/angular.js:1642:1 angularinit@http://localhost:9000/bower_components/angular/angular.js:1536:5 @http://localhost:9000/bower_components/angular/angular.js:28289:5 jquery.callbacks/fire@http://localhost:9000/bower_components/jquery/dist/jquery.js:3099:10 jquery.callbacks/self.firewith@http://localhost:9000/bower_components/jquery/dist/jquery.js:3211:7 .ready@http://localhost:9000/bower_components/jquery/dist/jquery.js:3417:1 completed@http://localhost:9000/bower_components/jquery/dist/jquery.js:3433:2 http://errors.angularjs.org/1.4.1/$injector/modulerr?p0=umxapp&p1=%5b%24injector%3aunpr%5d%20unknown%20provider%3a%20%24stateprovider%0ahttp%3a%2f%2ferrors.angularjs.org%2f1.4.1%2f%24injector%2funpr%3fp0%3d%2524stateprovider%0aminerr%2f%3c%40http%3a%2f%2flocalhost%3a9000%2fbower_components%2fangular%2fangular.js%3a68%3a12%0acreateinjector%2fprovidercache.%24injector%3c%40http%3a%2f%2flocalhost%3a9000%2fbower_components%2fangular%2fangular.js%3a4255%3a19%0agetservice%40http%3a%2f%2flocalhost%3a9000%2fbower_components%2fangular%2fangular.js%3a4402%3a39%0ainvoke%40http%3a%2f%2flocalhost%3a9000%2fbower_components%2fangular%2fangular.js%3a4434%3a1%0aruninvokequeue%40http%3a%2f%2flocalhost%3a9000%2fbower_components%2fangular%2fangular.js%3a4349%3a11%0aloadmodules%2f%3c%40http%3a%2f%2flocalhost%3a9000%2fbower_components%2fangular%2fangular.js%3a4358%3a11%0aforeach%40http%3a%2f%2flocalhost%3a9000%2fbower_components%2fangular%2fangular.js%3a336%3a11%0aloadmodules%40http%3a%2f%2flocalhost%3a9000%2fbower_components%2fangular%2fangular.js%3a4339%3a5%0acreateinjector%40http%3a%2f%2flocalhost%3a9000%2fbower_components%2fangular%2fangular.js%3a4265%3a11%0abootstrap%2fdobootstrap%40http%3a%2f%2flocalhost%3a9000%2fbower_components%2fangular%2fangular.js%3a1621%3a20%0abootstrap%40http%3a%2f%2flocalhost%3a9000%2fbower_components%2fangular%2fangular.js%3a1642%3a1%0aangularinit%40http%3a%2f%2flocalhost%3a9000%2fbower_components%2fangular%2fangular.js%3a1536%3a5%0a%40http%3a%2f%2flocalhost%3a9000%2fbower_components%2fangular%2fangular.js%3a28289%3a5%0ajquery.callbacks%2ffire%40http%3a%2f%2flocalhost%3a9000%2fbower_components%2fjquery%2fdist%2fjquery.js%3a3099%3a10%0ajquery.callbacks%2fself.firewith%40http%3a%2f%2flocalhost%3a9000%2fbower_components%2fjquery%2fdist%2fjquery.js%3a3211%3a7%0a.ready%40http%3a%2f%2flocalhost%3a9000%2fbower_components%2fjquery%2fdist%2fjquery.js%3a3417%3a1%0acompleted%40http%3a%2f%2flocalhost%3a9000%2fbower_components%2fjquery%2fdist%2fjquery.js%3a3433%3a2%0a return new errorconstructor(message);
i unable upload image angularjs. can answer me problem?
can 1 me how upload image angularjs , back-end nodejs in step step. find many not getting proper answer.
you not injecting ui-router dependency in app .
var app = angular.module('myapp', ['ngfileupload','ui.router']);
Comments
Post a Comment