What to use in place of ::ng-deep

后端 未结 7 874
梦毁少年i
梦毁少年i 2020-11-22 10:42

I\'m trying to style an element placed by the router outlet in angular and want to make sure that the element generated gets a width of 100%

From most of the replies

7条回答
  •  一生所求
    2020-11-22 11:05

    You can use "/deep/". It's ::ng-deep alternative.

    :host /deep/ h3 {
      font-style: italic;
    }
    

提交回复
热议问题