Join the Stack Overflow Community
Stack Overflow is a community of 6.8 million programmers, just like you, helping each other.
Join them; it only takes a minute:
Sign up

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

share|improve this question
    
No idea what "not getting the javascript file" means. Provide better detailed problem description – charlietfl Jun 25 '16 at 12:53
    
@charlietfl i have tried to explain clearly to you.. Now u can see. If anything else u need just cmnt. – Muhammad.Nazmul Ahsan Jun 25 '16 at 13:22
    
Please add information from the console, which error is throwing you? – Paulo Galdo Sandoval Jun 25 '16 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/… – Muhammad.Nazmul Ahsan Jun 25 '16 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. – Paulo Galdo Sandoval Jun 25 '16 at 16:16

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.