我正在使用Angular 4,Bootstrap,font-awesomes开展电子商务项目,我也使用.scss文件和angular-cli,我自己构建了滑块。 我已经离线安装了所有库,图像和任何文件。
这里的问题是,如果我离线项目工作,但好像没有风格,滑块不起作用,如果我在线,它将起作用。
在线=> The slider is work and there is no problem
offline => Slideer is not working 它在控制台中给了我这些消息
Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/opensans/v15/MTP_ySUJH_bn48VBG8sNSq-j2U0lmluP9RWlSytm3ho.woff2
localhost/:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/opensans/v15/MTP_ySUJH_bn48VBG8sNSpX5f-9o1vgP2EXwfjgl7AY.woff2
localhost/:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/opensans/v15/MTP_ySUJH_bn48VBG8sNShWV49_lSm1NYrwo-zkhivY.woff2
localhost/:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/opensans/v15/MTP_ySUJH_bn48VBG8sNSqaRobkAwv3vxw3jMhVENGA.woff2
localhost/:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/opensans/v15/MTP_ySUJH_bn48VBG8sNSv8zf_FOSsgRmwsS7Aa9k2w.woff2
localhost/:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/opensans/v15/MTP_ySUJH_bn48VBG8sNSj0LW-43aMEzIO6XUTLjad8.woff2
localhost/:1 Slow network is detected. Fallback font will be used while loading: https://fonts.gstatic.com/s/opensans/v15/MTP_ySUJH_bn48VBG8sNSugdm0LZdjqr5-oayXSOefg.woff2
localhost/:1 Slow network is detected. Fallback font will be used while loading: http://localhost:4200/glyphicons-halflings-regular.448c34a56d699c29117a.woff2
localhost/:1 Slow network is detected. Fallback font will be used while loading: http://localhost:4200/fontawesome-webfont.fee66e712a8a08eef580.woff
localhost/:1 Slow network is detected. Fallback font will be used while loading: http://localhost:4200/fontawesome-webfont.b06871f281fee6b241d6.ttf
core.es5.js:2925 Angular is running in the development mode. Call enableProdMode() to enable the production mode.
我需要一个解决方案,以便我可以离线运行项目并在线工作
答案 0 :(得分:1)
我认为问题出在滑块本身上,您正在使用jquery使其正常工作,并且在使用诸如Slick之类的角度版本的滑块时出现了一些问题 https://github.com/devmark/ngx-slick