Sharafat Ahmed Sabir
Sharafat Ahmed Sabir

Reputation: 59

Double curly braces are not working in angularjs

This code should evaluate the part in between the double curly braces according to a tutorial I'm following. I'm new to angularjs. So, pardon me if I'm asking silly question. Here's the link to plnkr http://plnkr.co/edit/sFhDiA?p=preview

    <!DOCTYPE html>
    <html>
        <head>
            <script data-require="[email protected]" 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>
            <div> {{ 78 + 8 }} </div>
        </body>
    </html>

Upvotes: 0

Views: 1951

Answers (1)

Ravindu Nirmal Fernando
Ravindu Nirmal Fernando

Reputation: 4822

You are missing your ng-app directive name on your html. Which means Angular won't run on your page.

Look into the ngApp documentation here. You can get a clear idea from there!

Similar SO question is also available here

Upvotes: 1

Related Questions