【问题标题】:Angular 4 Project doesn't work offlineAngular 4 Project 不能离线工作
【发布时间】:2018-05-22 12:05:27
【问题描述】:

我正在使用 Angular 4、Bootstrap、font-awesomes 从事电子商务项目,我也在使用 .scss 文件和 angular-cli,并且我自己构建了滑块。 我已经离线安装了所有库、图像和任何文件。

这里的问题是,如果我离线项目工作但好像没有样式并且滑块不起作用,如果我在线它会工作。

在线 => The slider is work and there is no problem

离线 => 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.

我需要一个解决方案,以便我可以离线运行项目并像在线一样运行

【问题讨论】:

标签: angular web responsive-design e-commerce frontend


【解决方案1】:

我认为问题出在滑块本身,您正在使用 jquery 使其工作,这会导致一些问题尝试使用像 Slick 这样的滑块的角度版本 https://github.com/devmark/ngx-slick

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-01-11
    • 1970-01-01
    • 1970-01-01
    • 2019-12-18
    • 1970-01-01
    相关资源
    最近更新 更多