[英]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.