我正在开发一个使用Angularjs 1.2.27版本的应用程序,所以我决定将其更新到Angularjs的1.4.7版本。但是在这样做之后,我在Angularjs文件中得到错误。
SyntaxError: Unexpected token : (angular.js:12477)
at Function (native)
at Object.sd.compile (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.7/angular.min.js:212:409)
我正在开发一款AngularJs应用程序,并试图坚持使用angularJS中最高效、最被广泛接受的开发风格。目前,我使用这种方式声明我的服务,如下所示:
app.factory('MyService', function() {
/* ... */
function doSomething(){
console.log('I just did something');
}
function iAmNotVisible(){
console.log('I am not accessible from the out