Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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>
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:
Can anyone tell me how to load angular-ui-router[.min].js correctly?
Any response will help.
Thanks in advance.
Regards,
Alan
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...