【问题标题】:Angular disable cdk-overlay for only one child componentAngular 仅对一个子组件禁用 cdk-overlay
【发布时间】:2022-06-16 19:12:02
【问题描述】:

我想删除从角材料下拉列表中生成的 cdk-overlay。我正在使用一家公司的角材料版本。所以我对一些东西有不同的名字。

我试图通过在 style.scss 中将显示设置为无来删除 cdk-overlay。但我只想在一个组件中删除它。

我无法更改 home.component.scss 文件夹中的样式。它不起作用。

项目结构:

style.scss (src folder) **change style here**
   |
   |->app (app folder)
      |
      |->userview (component folder)
            |
            |->home (component folder)
                  |
                  |->home.component.scss **here should be the affect**

【问题讨论】:

    标签: angular


    【解决方案1】:

    删除很简单

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-02-18
      • 2020-03-14
      • 2021-01-18
      相关资源
      最近更新 更多