[英]How to Angular2 @Component add css and less?
我仅在像这样的项目中将@Component与CSS一起使用:
@Component({
templateUrl: './home.component.html',
styleUrls: ['../css/style.css'],
providers: [CookieService],
directives: [ROUTER_DIRECTIVES]
})
是否可以同时使用css和更少的方法? 我希望使用像bootstrap这样的css common和我的个人少样式如下:
@Component({
templateUrl: './home.component.html',
styleUrls: ['../css/style.css', '../css/style2.less'],
providers: [CookieService],
directives: [ROUTER_DIRECTIVES]
})
不能提供带有链接标记的样式吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.