Where to include js libraries in Ionic?

前端 未结 3 2052
旧时难觅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:41

    I know this is old, but for those who are struggling with this for Ionic 2, add script files to src/assets/scripts, then refer to them via a script tag in src/index.html (not the one in www). When it builds, everything in src/assets will be copied to www/assets, including your scripts. index.html will also be copied to www.

      
      
      
      
    

提交回复
热议问题