JavaScript Angularjs-file uploading:Error: [$injector:unpr] Unknown provider: $uploadProvider <- $upload angularjs file uploading,angularjs file upload example,angularjs file upload

I am trying to upload-file using angularFileUpload in php,but i will get this error in angular.

[$injector:unpr] Unknown provider: $uploadProvider

I have tried answer from this question but no luck.

Here is my app.js

angular.module('app',[
'ui.router','angularFileUpload'
])
.config(['$urlRouterProvider','$stateProvider',function($urlRouterProvider,$stateProvider){

    $urlRouterProvider.otherwise('/');
    $stateProvider
    .state('home',{
        url:'/',
        templateUrl:'templates/home.html',
        controller:'homeCtrl'
        })
        .state('login',{
        url:'/login',
        templateUrl:'templates/login.html',
        controller:'loginCtrl'
        })
        .state('register',{
        url:'/register',
        templateUrl:'templates/register.html',
        controller:'registerCtrl'
        })
       }]);

Controller.js

angular.module('app')
 .controller('registerCtrl',['$upload',function($scope,$http,$state,$upload){

]});

But still I get this error.

Error: [$injector:unpr] Unknown provider: $uploadProvider

Answer:1

function myFunc(){ console.log(myFunc.message); } myFunc.message = "Hi John"; myFunc(); Executing the above results in - Answer: 'Hi John' How is the function myFunc have the property message ...

function myFunc(){ console.log(myFunc.message); } myFunc.message = "Hi John"; myFunc(); Executing the above results in - Answer: 'Hi John' How is the function myFunc have the property message ...

  1. javascript functions have arguments
  2. do javascript functions have to return a value
  3. javascript can functions have properties
  4. functions have javascript

Say I have a Class Library containing a HelloWorld.js file. This file contains a couple javascript functions, like say: function Hello_alert() { alert("Hello World!!"); } and function ...

Say I have a Class Library containing a HelloWorld.js file. This file contains a couple javascript functions, like say: function Hello_alert() { alert("Hello World!!"); } and function ...

  1. javascript using files
  2. using multiple javascript files
  3. using javascript files in html
  4. using gzip javascript files
  5. using javascript external files
  6. javascript and files
  7. angular use javascript files
  8. using javascript in pdf files

I want to change the div order through JavaScript. i didn't know how to do that This is the two div which implement in html, but i want div id="navigation" show in html after div class="row ...

I want to change the div order through JavaScript. i didn't know how to do that This is the two div which implement in html, but i want div id="navigation" show in html after div class="row ...

  1. change array order javascript
  2. change div order javascript
  3. change object order javascript
  4. change element order javascript
  5. change list order javascript
  6. change tab order javascript
  7. change dom order javascript
  8. change li order javascript
  9. change event order javascript
  10. change column order javascript
  11. change image order javascript
  12. change node order javascript
  13. change z order javascript
  14. change sorting order javascript
  15. change order of keys javascript
  16. change table column order javascript
  17. change order of execution javascript
  18. change json key order javascript
  19. javascript change order of elements in array
  20. change order of html elements javascript

I am coding a php/html page, with some javascript functions. I want to perform an INSERT on my MySQL Database if the result of one of my javascript functions is equal to 1. 01) How can I access the ...

I am coding a php/html page, with some javascript functions. I want to perform an INSERT on my MySQL Database if the result of one of my javascript functions is equal to 1. 01) How can I access the ...