Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
alanxu0618
Contributor
Contributor

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

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

1 Reply
alanxu0618
Contributor
Contributor
Author


I need nested route in my mashup, that's why I want ui.route at first.

Now I have a replacement to achieve it: angular-route-segment.

Its much more convenient than ui-router and seems there is no compatibility error so far.

Github URL embedded: GitHub - artch/angular-route-segment: A lightweight extension for AngularJS $route service which sup...