Angular 4 script not working after changing route

后端 未结 6 1039
萌比男神i
萌比男神i 2020-12-11 09:59

while changing the routes to homepage, javascript and jquery code is not loading in Angular 5

6条回答
  •  粉色の甜心
    2020-12-11 10:25

    According to your question I think the problem is with the scripts initialization. Try using:

    $(document).ready(function() {
    
    });
    

    to initialize scripts.

提交回复
热议问题