반응형
@Component({
selector: 'admin-lnb',
templateUrl: './admin-lnb.component.html',
styleUrls: ['./admin-lnb.component.scss'],
host: { class: 'block' } // 이렇게 하면 됩니다.
})
https://stackoverflow.com/questions/34641281/how-to-add-class-to-host-element
반응형
'개발일지 > JS' 카테고리의 다른 글
[Angular/Storybook] Can't bind to 'x' since it isn't a known property of 'y' (0) | 2020.11.16 |
---|---|
[Angular] ng-click-outside / Uncaught Error: Type ClickOutsideModule does not have 'ngModuleDef' property. (0) | 2020.11.16 |
[JS] gulp.spritesmith 레티나 이미지 스프라이트 자동화 (심화편) (0) | 2020.07.14 |
[JS] gulp.spritesmith 레티나 이미지 스프라이트 자동화 (기본편) (0) | 2020.07.13 |
[JS] package-lock.json (0) | 2020.07.13 |