AngularJS not working on Plunker

1.7k views Asked by At

I'm trying to go through a simple tutorial on AngularJS and can't seem to get past the first step. {{ 10 x 10}} isn't appearing as 100. Any ideas?

 <!DOCTYPE html>
    <html>

      <head>
        <script data-require="[email protected]" data-semver="1.4.0" src="https://code.angularjs.org/1.4.0/angular.js"></script>
        <link rel="stylesheet" href="style.css" />
        <script src="script.js"></script>
      </head>

      <body ng-app>
        <h1>Hello Plunker!</h1>
        {{ 10*10}}
      </body>

    </html>
1

There are 1 answers

1
nalinc On

You might have mentioned multiple versions of ng-app (probably in <html> tag).Otherwise your code is working fine

<!DOCTYPE html>
<html>

   <head>
    <script data-require="[email protected]" data-semver="1.4.0" src="https://code.angularjs.org/1.4.0/angular.js"></script>
    <link rel="stylesheet" href="style.css" />
    <script src="script.js"></script>
  </head>

  <body ng-app>
    <h1>Hello Plunker!</h1>
    {{ 10*10}}
  </body>

</html>

Here's the demo