T
T
TihoFih2015-06-02 13:25:01
Angular
TihoFih, 2015-06-02 13:25:01

How to make AngularJS work in IE in case of launching an application from a file (without a web server)?

We have a simple AngularJS sample application, you can see it here .
There is nothing special there, this is an example showing switching between two views (view).
The thing is, it doesn't work in IE when run from a file, without a web server.
You click on the view link <a href="#/question">Вопрос</a>
and the following is displayed in the IE console:

Файл: index.html
HTML1300: Произошел переход.

Файл: index.html
Error: Отказано в доступе.

   at Anonymous function (file:///F:/TEMP/angular_routes/js/lib/angular.min.js:78:274)
   at s (file:///F:/TEMP/angular_routes/js/lib/angular.min.js:74:109)
   at Anonymous function (file:///F:/TEMP/angular_routes/js/lib/angular.min.js:71:422)
   at J (file:///F:/TEMP/angular_routes/js/lib/angular.min.js:101:76)
   at J (file:///F:/TEMP/angular_routes/js/lib/angular.min.js:101:76)
   at Anonymous function (file:///F:/TEMP/angular_routes/js/lib/angular.min.js:102:249)
   at h.prototype.$eval (file:///F:/TEMP/angular_routes/js/lib/angular.min.js:113:21)
   at h.prototype.$digest (file:///F:/TEMP/angular_routes/js/lib/angular.min.js:110:109)
   at h.prototype.$apply (file:///F:/TEMP/angular_routes/js/lib/angular.min.js:113:360)
   at Anonymous function (file:///F:/TEMP/angular_routes/js/lib/angular.min.js:18:268)

The question is, what kind of such access is denied? Why does everything work when opening index.html from a web server, but when launched from a file - "Access denied." ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gavrilov, 2015-06-02
@FireVolkhov

What do you want from us? All claims against IE developers https://support.microsoft.com/en-us/product/intern...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question