角度-在多个整体样式之间选择

时间:2018-12-20 21:49:23

标签: angular

我的应用程序包含由第三方公司提供的不同仪表板。

所有SASS文件的名称都相同,并且样式使用相同的命名约定。

我想知道是否有一种方法可以为每个仪表板加载特定资产,而不是为每个仪表板重写主题。

angular.json:

   "styles": [
          "src/styles-dashboard-1.scss",
          "src/styles-dashboard-2.scss",
          "src/styles-dashboard-3.scss",
        ],
        "scripts": [
          "./node_modules/jquery/dist/jquery.min.js",
          "./node_modules/bootstrap/dist/js/bootstrap.js",
          "./src/assets/js/main.js"
        ]

因此,文件夹:

  

src / app / dashboard-1 / dashboard-1-component

应适用:styles-dashboard-1.scss,并忽略其他样式,反之亦然。

有没有办法使用Angular来实现这一目标?

0 个答案:

没有答案