I am a newbia for angularjs. I suffer some problem that the doc files in angluar-{version}.zip could not directly opened by my chrome browser and "node-webkit".
there are always 4 errors which are shown by console:
TypeError: Cannot call method 'indexOf' of undefined:
at oa (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:82:378)
....
(the detail will in the issue end)
however,it works well in my ngnix http server.
why? it seems that angularjs is not suitable for native web application development ,and the basis features of angularjs counld not work whitout httpserver.
Do you think my Inference is true?
the detail about my problem:
the Error informations in the node-webkit which based on chrome 32 version:
TypeError: Cannot call method 'indexOf' of undefined
at oa (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:82:378)
at Object.$$parse (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:83:124)
at Vd.$get (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:86:330)
at Object.d as invoke
at eval (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:36:13)
at c (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:34:13)
at Object.d as invoke
at eval (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:43:447)
at Array.forEach (native)
at q (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:7:280) angular.js:9778
TypeError: Cannot call method 'indexOf' of undefined
at oa (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:82:378)
at Object.$$parse (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:83:124)
at Vd.$get (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:86:330)
at Object.d as invoke
at eval (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:36:13)
at c (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:34:13)
at Object.d as invoke
at eval (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:36:13)
at c (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:34:13)
at Object.d as invoke angular.js:9778
TypeError: Cannot call method 'indexOf' of undefined
at oa (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:82:378)
at Object.$$parse (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:83:124)
at Vd.$get (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:86:330)
at Object.d as invoke
at eval (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:36:13)
at c (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:34:13)
at Object.d as invoke
at eval (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:36:13)
at c (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:34:13)
at Object.d as invoke angular.js:9778
TypeError: Cannot call method 'indexOf' of undefined
at oa (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:82:378)
at Object.$$parse (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:83:124)
at Vd.$get (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:86:330)
at Object.d as invoke
at eval (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:36:13)
at c (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:34:13)
at d (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:34:230)
at Object.instantiate (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:34:394)
at eval (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:66:112)
at eval (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:53:14) angular.js:9778
@luoweipeter this is a restriction of the Web browser. Basically, if you load a page directly from the file system it cannot make http requests in javascript.
I am a newbia for angularjs. I suffer some problem that the doc files in angluar-{version}.zip could not directly opened by my chrome browser and "node-webkit". there are always 4 errors which are shown by console: TypeError: Cannot call method 'indexOf' of undefined: at oa (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:82:378) .... (the detail will in the issue end)
however,it works well in my ngnix http server.
why? it seems that angularjs is not suitable for native web application development ,and the basis features of angularjs counld not work whitout httpserver.
Do you think my Inference is true?
the detail about my problem: the Error informations in the node-webkit which based on chrome 32 version: TypeError: Cannot call method 'indexOf' of undefined at oa (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:82:378) at Object.$$parse (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:83:124) at Vd.$get (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:86:330) at Object.d as invoke at eval (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:36:13) at c (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:34:13) at Object.d as invoke at eval (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:43:447) at Array.forEach (native) at q (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:7:280) angular.js:9778 TypeError: Cannot call method 'indexOf' of undefined at oa (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:82:378) at Object.$$parse (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:83:124) at Vd.$get (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:86:330) at Object.d as invoke at eval (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:36:13) at c (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:34:13) at Object.d as invoke at eval (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:36:13) at c (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:34:13) at Object.d as invoke angular.js:9778 TypeError: Cannot call method 'indexOf' of undefined at oa (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:82:378) at Object.$$parse (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:83:124) at Vd.$get (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:86:330) at Object.d as invoke at eval (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:36:13) at c (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:34:13) at Object.d as invoke at eval (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:36:13) at c (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:34:13) at Object.d as invoke angular.js:9778 TypeError: Cannot call method 'indexOf' of undefined at oa (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:82:378) at Object.$$parse (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:83:124) at Vd.$get (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:86:330) at Object.d as invoke at eval (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:36:13) at c (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:34:13) at d (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:34:230) at Object.instantiate (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:34:394) at eval (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:66:112) at eval (file:///E:/node/angular-1.2.16/angular-1.2.16/angular.min.js:53:14) angular.js:9778