Angular-calendar: Css Issue

Created on 9 Aug 2017  路  2Comments  路  Source: mattlewis92/angular-calendar

I have included node_modules/angular-calendar/dist/css/angular-calendar.css and still no luck.

This is the result I'm getting:

calendar

I noticed someone had the same issue issue #77 . But I do not have a src/styles.css file. Any other ideas on how to fix the issue?

Most helpful comment

calendar1
I was able to get the styling working by adding this link to my index.html page
<link href="https://unpkg.com/[email protected]/dist/css/angular-calendar.css" rel="stylesheet">

It would not work when I had this though:
<link href="/node_modules/angular-calendar/dist/css/angular-calendar.css" type="text/css" rel="stylesheet">

Any ideas why?

All 2 comments

calendar1
I was able to get the styling working by adding this link to my index.html page
<link href="https://unpkg.com/[email protected]/dist/css/angular-calendar.css" rel="stylesheet">

It would not work when I had this though:
<link href="/node_modules/angular-calendar/dist/css/angular-calendar.css" type="text/css" rel="stylesheet">

Any ideas why?

It's probably because your local dev server isn't serving the node_modules folder directly. Without knowing anything about your setup its impossible to really know more. There are examples for all common build tools here that might help you: https://github.com/mattlewis92/angular-calendar/tree/master/build-tool-examples

Was this page helpful?
0 / 5 - 0 ratings