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">

<html ng-app="">
    <body >


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"

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.