Angular 2 external style doesn't get inlined to header

后端 未结 3 401
遥遥无期
遥遥无期 2020-12-11 21:24

I have this component definition in typescript:

import {Component, ViewEncapsulation} from \'angular2/core\';

@Component({
    selector: \'my-app\',
    tem         


        
3条回答
  •  伪装坚强ぢ
    2020-12-11 21:57

    The Best way to fix this is use another css file for your component and add it to your StyleUrls list. Cleaner and will scale as you components grow.

提交回复
热议问题