Open Tambe257 opened 10 years ago
No, it was developed in Chrome, actually. This repo was the WIP app used in the course, so there may be some drift. What issues are you having? Screenies are appreciated. ;)
I did note that the addReview()
function was b0rk3d.
I'm a newbie to Angular, so it might be simple. I download your source code, and when I open it in Safari or Chrome it's a blank page. When I open it in Firefox it works fine. It's odd, because I would expect Chrome to be where it works. Other Angular apps work in Chrome, so it's not that a setting isn't enabled. I also tried it on my work computer and it worked in Firefox, but not in Chrome or IE. Here's the error log:
Failed to load resource: net::ERR_FILE_NOT_FOUND file:///C:/Users/ttambe/Desktop/New%20folder/styles/app.css XMLHttpRequest cannot load file:///C:/Users/ttambe/Desktop/New%20folder/product-title.html. Cross origin requests are only supported for HTTP. index.html:1 file:///C:/Users/ttambe/Desktop/New%20folder/index.html
XMLHttpRequest cannot load file:///C:/Users/ttambe/Desktop/New%20folder/product-gallery.html. Cross origin requests are only supported for HTTP. index.html:1 file:///C:/Users/ttambe/Desktop/New%20folder/index.html
On Fri, Jun 13, 2014 at 10:40 AM, David Rogers notifications@github.com wrote:
I did note that the addReview() function was b0rk3d.
— Reply to this email directly or view it on GitHub https://github.com/codeschool/angular-demo-app/issues/1#issuecomment-46019065 .
Ah. Here's your problem:
file:///C:/Users/ttambe/Desktop/New%20folder/product-title.html. Cross origin requests are only supported for HTTP. index.html:1
Here's a post on SO that explains: http://j.mp/1hQRUpy
You need to run the app through a web server or use the --allow-file-access-from-files
flag to Chrome to use file://
URLs. Instead of figuring out how to install a web server, you can load the project up in Brackets (http://brackets.io) and use the live-preview feature. Much simpler.
If you really want the dead-simplest web server (time and) money can buy, install Python (http://j.mp/1hQSH9P) and run python -m SimpleHttpServer
in the project directory. Then visit http://localhost:8000
in your browser.
Is there a simple reason that this app will work in Firefox, but not in Chrome or Safari?