0

So I have implemented a script that uses angular as well, however when I use {{1+1}} it does nothing, also it shows me a warning that is created inside the Javascript file(we created it too show that it works).

The code for the lightning static resource is:

<aura:component implements="flexipage:availableForAllPageTypes">
<ltng:require
              styles="/resource/bootstrap"
              scripts="/resource/BookingWidget"
    />

<html ng-app="">
    <body >
    {{1+1}}


    </body>
</html>

ng-app="" even being empty it should run {{1+1}}

I left it for five minutes and it gave me a warning

"WARNING: Tried to load angular more than once"

4
  • Your opening <html> tag needs a closing pointed bracket - <html ng-app="">. If it is closed in your code, please update this excerpt.
    – Rob
    Commented Sep 11, 2015 at 14:34
  • Yes it is closed in the code, my bad sorry.
    – apark
    Commented Sep 11, 2015 at 14:36
  • Does the dev console display any errors?
    – Rob
    Commented Sep 11, 2015 at 15:26
  • No the Dev console doesn't display any errors
    – apark
    Commented Sep 11, 2015 at 15:35

0

You must log in to answer this question.

Browse other questions tagged .