1

when the index page load with ui-view,the injected view works fine But when i change the state and the new view injected it's not get the functionality that define in app/app.js & all.js which loaded initially with the main view.Although the injected ui view gets the css file but not js file which loaded earlier with the main index.html. here is the index.html and config.js enter image description here

here navbar.html and controller enter image description here

8
  • No idea what "not getting the javascript file" means. Provide better detailed problem description Commented Jun 25, 2016 at 12:53
  • @charlietfl i have tried to explain clearly to you.. Now u can see. If anything else u need just cmnt. Commented Jun 25, 2016 at 13:22
  • Please add information from the console, which error is throwing you? Commented Jun 25, 2016 at 15:23
  • @PauloGaldoSandoval no error is throwing. Due to not getting the all.js and app.js that loaded with index.html. the ui-view not performing some functionality that defined on that all.js & app.js script. Though the network shows those two js file already loaded. but ui-view don't get them. it's similar to this problem stackoverflow.com/questions/18220197/… Commented Jun 25, 2016 at 15:53
  • 1
    uhm sound stupid, but you tried to put your all.js and app.js after jquery and angular dependency's? they are declared before, if them use a angular o jquery component they wont load properly. Commented Jun 25, 2016 at 16:16

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.