filearts / plunker_www

The public-facing website for http://plnkr.co
MIT License
289 stars 94 forks source link

Angular templates are not working (missing ng-app) #81

Open jxc876 opened 8 years ago

jxc876 commented 8 years ago

Steps to reproduce:

  1. https://plnkr.co/ > Launch the Editor
  2. New > AngularJS > 1.4.X

Current Behaviour: The following html is generated:

<!DOCTYPE html>
<html>

  <head>
    <meta charset="utf-8" />
    <title>AngularJS Plunker</title>
    <script>document.write('<base href="' + document.location + '" />');</script>
    <link href="style.css" rel="stylesheet" />
    <script data-semver="1.4.9" src="https://code.angularjs.org/1.4.9/angular.js" data-require="angular.js@1.4.x"></script>
    <script src="app.js"></script>
  </head>

  <body ng-controller="MainCtrl">
    <p>Hello {{name}}!</p>
  </body>

</html>

The following html is rendered:

Hello {{name}}! 

Adding <html ng-app="plunker"> seems to fix the issue:

Hello World!

I would fix it but I don't know where the templates are stored :(

jxc876 commented 8 years ago

Update title sine its not specific to Angular 1.4, seems to occur with all Angular versions

Narretz commented 8 years ago

This happens to me in Firefox only since forever. I asked @ggoodman about this when it first started, and I think he said it's a security thing in Firefox or something.