Home  >  Q&A  >  body text

How to reference external js and css separately in ionic - Stack Overflow

I now want to package a web project into an app and write it in ionic, but the original web reference css and js are all html importing the corresponding external js and css files, so there may be no duplication when naming. It will have an impact on other html. Now when using ionic, it seems that everything needs to be imported into index.html. I tried to import it into <ion-view></ion-view> and it was successful, but it seems not very good. Is there any other way?

ringa_leeringa_lee2737 days ago569

reply all(1)I'll reply

  • 迷茫

    迷茫2017-05-16 13:45:25

    ionic’s routing is based on ui-router, which can be loaded lazily using $ocLazyLoad.

    reply
    0
  • Cancelreply