Ng-cordova.js:2483 Uncaught SyntaxError: Unexpected identifier

I’m working in Ionic project. In order to use the scanner QR code, I
use ng-cordova. I downloaded the ng-cordova.js from this website :

When I run the project with the command Ionic serve, on my console I
get the syntax error in javascript file : ng-cordova.js:2483 Uncaught
SyntaxError: Unexpected identifier

the row 2483 of ng-cordova.js has this code:

Not Found// install : cordova plugin add

How can I resolve this problem?


you can install like:“bower install ngCordova”

and place the ng-cordova.min.js file in the js folder,include the script file in the index.html