Comments (9)
I assume that you are talking about the completed sample in "A Simple App"? I cannot reproduce the issue on my machine, so I'll take a deeper look into this later on today. Thanks for reporting the error.
from learnangular.
Getting the same error on Chrome on Windows:
Error: Blocked a frame with origin "http://www.learn-angular.org" from accessing a cross-origin frame.
at Error (native)
at h.n.run (http://www.learn-angular.org/bundles/scripts?v=f0y9mqEfGJgi7v47CYJOTsTHeGJYfrd2tWBpTm54HXg1:1:1741)
at http://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js:163:57
at http://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js:179:344
at h.$eval (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js:102:456)
at h.$apply (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js:103:212)
at HTMLButtonElement.<anonymous> (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js:179:326)
at http://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js:27:208
at q (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js:7:386)
at HTMLButtonElement.Yc.c (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js:27:190)
from learnangular.
Thanks for the additional input. Good to know it's not just on Mac. I'll be looking into this shortly.
from learnangular.
Just as a quick update, I am looking into this and think I've found the reason. I believe that this error is caused by the fact that the browser loads Angular via the Google CDN. If I'm on the right track, this will be fixed within the next few days.
from learnangular.
Alright I've taken a first shot at correcting this. If somebody could please try this out and let me know whether or not the issue is resolved, that would be fantastic as I cannot reproduce the error on my own machine.
If you do still get the error, please do me a favour and check that you are running the updated version of the site and are not being served a cached copy. To do this, run the Chrome dev tools and inspect the iframe contents. You should get something that looks like this.
<html ng-app="root" class="ng-scope">
<head>
<style type="text/css">@charset "UTF-8";[ng\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide{display:none !important;}ng\:form{display:block;}</style>
</head>
<body>
<div ng-controller="index" class="ng-scope ng-binding">Hello World!</div>
<script src="/Scripts/angular/angular.min.js"></script>
<!-- ... -->
If the script tag does not point to /Scripts...
but instead points to the Google CDN, then you're getting the cached page. (CTRL+F5 in that case)
Thanks!
from learnangular.
I'm getting a similar error in Chrome on Windows 8.1 (though not running it in Windows 8 mode):
Error: Blocked a frame with origin "http://learn-angular.org" from accessing a cross-origin frame.
at Error (native)
at h.n.run (http://learn-angular.org/bundles/scripts?v=daziDimy4BLVdE8_-UKzkZUI71YaUbCAkBxFFwYZpaE1:1:1776)
at http://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js:163:57
at http://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js:179:344
at h.$eval (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js:102:456)
at h.$apply (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js:103:212)
at HTMLButtonElement. (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js:179:326)
at http://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js:27:208
at q (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js:7:386)
at HTMLButtonElement.Yc.c (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js:27:190)
The script tag is pointing to:
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js"></script>
I tried Ctrl-F5, but it remained the same.
from learnangular.
Alright I'll take a look at this when I find the time. Thank you for reporting it!
from learnangular.
what happened to this?
from learnangular.
I thought I fixed it. Experiencing the problem?
from learnangular.
Related Issues (20)
- Make the left-side menu navigation offer proper links for copying or opening in a new window HOT 3
- Consider using single quotes ' in JavaScript instead of double quotes " HOT 2
- Ambiguous syntax explanation in the $watch tutorial HOT 3
- ... learn which version of angular? HOT 2
- Page Not Found: Dependency injection for five year olds HOT 2
- User data is not being saved in AJAX tutorial HOT 2
- Run not showing results HOT 4
- Amazing explanation HOT 1
- The Value Recipe needs some update HOT 5
- Nice explanation. One more point. HOT 3
- First Lesson: Simple App doesn't display HTML correctly HOT 9
- Constant recope HOT 3
- First lesson bug HOT 2
- Binding CSS classes HOT 1
- extra code in Two-way bindings lesson HOT 1
- aesthetics issue in repeaters HOT 1
- Syntax error causes fields to be uneditable
- lol :D HOT 1
- Where can we find the .css files? HOT 1
- The tutorial no longer work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from learnangular.