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 : http://ngcordova.com/build/

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 https://github.com/floatinghotpot/cordova-admob-pro.git

How can I resolve this problem?

Hi,

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