【问题标题】:css not working in child theme when using ng-include使用 ng-include 时 css 在子主题中不起作用
【发布时间】:2019-01-26 21:31:54
【问题描述】:

我正在使用 AdminLTE 模板创建一个简单的网络应用程序。我正在训练使用 AngularJS 作为我的前端。我想将我的主题拆分为一些子主题,因为它更容易实现。为此,我使用“ng-include”指令,但子视图中的 html 没有正确显示:

过去当我使用 php 时,我没有遇到同样的问题。我该怎么办?

【问题讨论】:

  • 我想,从 theme 你的意思是 templates 。你能分享一个演示吗?从我的工作来看,ng-include 与 css 配合得很好。你能检查一次父class的范围吗

标签: angularjs angularjs-ng-include


【解决方案1】:

解决方案。我正在使用:

当使用标签“ng-Include”时,css 不起作用。所以我包含 profile.html 的第一行并添加了 ng-Include 指令:

这对我来说很好!

【讨论】:

    猜你喜欢
    • 2015-12-22
    • 2018-03-27
    • 2017-02-07
    • 2015-02-20
    • 1970-01-01
    • 1970-01-01
    • 2014-12-07
    • 1970-01-01
    相关资源
    最近更新 更多