Link to home
Start Free TrialLog in
Avatar of IzzyTwinkly
IzzyTwinklyFlag for United States of America

asked on

what's wrong with binding expression?

Hi,

I am using plnkr.co editor for AngularJS practice and this is my first code, but it doesn't work correctly.
Can you tell me what I did wrong in my code below? When I type '{{ 843 / 42 }}', I am supposed to have a calculated value as an output, but I am not getting this value.

<!DOCTYPE html>
<html>

  <head>
    <script data-require="angular.js@*" data-semver="2.0.0-alpha.31" src="https://code.angularjs.org/2.0.0-alpha.31/angular.js"></script>
    <link rel="stylesheet" href="style.css" />
    <script src="script.js"></script>
  </head>
  <body ng-app>
    <h1>Hello Plunker!</h1>
    {{ 843 / 42 }}
  </body>
</html>

Open in new window


The Result:
Hello Plunker!
{{ 843 / 42 }}
ASKER CERTIFIED SOLUTION
Avatar of Carl Tawn
Carl Tawn
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of IzzyTwinkly

ASKER

thanks Carl!