0
我有多個角2個組分,其中我打開我的樣式表是這樣的:Angular2 styleUrls不正確加載
@Component({
selector: 'rewards-component',
styleUrls: [
'../../assets/styles/old-web-styles/old-web-styles.component.scss',
'./rewards.component.scss'
],
templateUrl: './rewards.component.html'
})
的./rewards.component.scss
加載罰款,但../../assets/styles/old-web-styles/old-web-styles.component.scss
不以任何我的組件加載。我知道該文件正在被發現,但因爲如果我改變它的名字,它會拋出一個file not found error
。爲什麼這個樣式表不加載?
你有沒有發現這個問題的解決方案? –