1 Reply Latest reply: Jul 27, 2017 8:53 PM by Xu Liang RSS

    Fail to load angular-ui-router js in sense 3.2 mashup

    Xu Liang

      Hi, community:

       

      I am creating a mashup and need to use angular-ui-router.js in my mashup, but always failed to load the JS file or inject ui.router.

       

      It goes error if I just load the js file using <script> tags in html file

      <script src="angular-ui-router.js"></script>

      ErrorPic1.png

       

      then I tried to load the angular-ui-router.js through requireJS config:

      paths : {

        "route":"./angular-ui-router"

        }

      but it still does not work, seems encoutered error while injecting ui.router:

      ErrorPic2.png

       

      Can anyone tell me how to load angular-ui-router[.min].js correctly?

       

      Any response will help.

      Thanks in advance.

       

      Regards,

      Alan