我有一个电子商务网站。我使用 Sails.js、Bootstrap、PostgreSQL 开发它......我使用 AdminLTE 作为管理面板。
现在我想用 Angular 2 重构前端。但是 Bootstrap 有问题。当我在 index.html 中包含脚本(Bootstrap、AdminLTE)和样式(Bootstrap、AdminLTE)时。AdminLTE 使外观与众不同。
如何包含组件的脚本和样式?
例如; 如果 Admin 组件出现,则 script1、script2 和 style1、style2 将被包括在内。如果 home 组件出现,那么 home_script 和 home_style 将被包括在内。
提前致谢。