javascriptangularjsplunker

AngularJS not loading on Plunker


I launched Plunker and used their add button to add Angular to my project.

But it is not working. When I use the view tab, it is just showing the angular expression like a normal text.

https://plnkr.co/edit/wDOkQK9seCbpZnPfebj3?p=preview

Here is what Plunker looked like:

<!DOCTYPE html>
<html>

  <head>
    <script data-require="angular.js@*" data-semver="2.0.0" src="https://code.angularjs.org/2.0.0-snapshot/angular2.js"></script>
    <link rel="stylesheet" href="style.css" />
    <script src="script.js"></script>
  </head>

  <body ng-app>
    <h1>Hello Plunker!</h1>
    {{ 20 / 4 }}
  </body>

</html>

Solution

  • You are using the angular version 2.0 you should replace with 1.x

      <script   src="https://code.angularjs.org/1.5.8/angular.js"></script>
    

    DEMO