Why don't you use a web server? You can install NPM, then install
http-server for running the codes.

Tito <[email protected]>于2016年4月8日周五 上午3:34写道:

> pull down the necessary .js files locally in a certain folder and
> reference them
>
>
> On Thursday, April 7, 2016 at 8:01:39 AM UTC-7, Vishal Sharma wrote:
>>
>> Hello,
>>
>> I have a SPA built using AngularJS framework. The index.html is the main
>> page that has ng-view directive to load and display the templates.
>> The application uses Angular Route module to navigate to various pages
>> within the application.
>> The problem is that I have to use a Webserver for the SPA to work. If I
>> try to load the pages directly from the file system, I get a CORS error.
>> This error occurs on IE and Chrome. But the same SPA works without issues
>> on the FireFox browser.
>>
>> Could anyone please guide me so that the SPA can work on IE and Chrome as
>> well without having to use a web server.
>>
>> Thank you,
>>
>> Vishal Sharma
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "AngularJS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to