我使用的是Angular 4,我想使用cssscript中的circle.css。 我從鏈接下載文件,把circle.css我的東西部件文件內,但是當我在something.component.html使用
<link rel="stylesheet" href="circle.css">
Angular 4在文檔頭部加載circle.css
。
我得到錯誤:
zone.js:654 Unhandled Promise rejection: Failed to load circle.css ; Zone: ; Task: Promise.then ; Value: Failed to load circle.css undefined* Which are the correct steps I need to follow to use the css file circle.css in my component??
你把它放在index.html的'
'裏嗎? – Phix