devyumao / angular2-busy

Show busy/loading indicators on any promise, or on any Observable's subscription.
http://devyumao.github.io/angular2-busy/demo/asset/
MIT License
314 stars 102 forks source link

404 on busy.css #70

Open graham-sportsmgmt opened 7 years ago

graham-sportsmgmt commented 7 years ago

I inserted the stylesheet link into index.html as directed, but I'm getting a 404 in my browser.

<link rel="stylesheet" href="/node_modules/angular2-busy/build/style/busy.css">

Is there another way to import the styles?

marloncarvalho commented 7 years ago

Instead of adding the busy.css in your index.html, insert it in your .angular-cli.json in the apps/styles section, like this:

"styles": [
    "styles.css",
    "../node_modules/angular2-busy/build/style/busy.css"
]

I think documentation should be updated so people don't struggle with the same problem as @graham-sportsmgmt and I.

seanrenton commented 7 years ago

even after adding this to the styles it is not working