Where to include js libraries in Ionic?

前端 未结 3 2027
旧时难觅i
旧时难觅i 2021-01-12 22:38

thanks for your time! I am battling to get any scripts running in the Ionic framework\'s sidemenu starter template. I have placed them everywhere (except where they\'re supp

3条回答
  •  耶瑟儿~
    2021-01-12 22:47

    I would add any scripts such as jquery either just before or just after the script tag for cordova. This is in index.html located within the app/ directory of the project that running the yeoman generator created.

    
    
    
    
    
        
        
        
    

    Once you have placed the scripts here they will get called when the app runs, and libraries such as jquery will be available globally throughout the app. I hope this helps.

提交回复
热议问题