You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
More angular-cli way to load the ArcGIS (and font?) CSS #22
Would also want to update the sentance under the goal section of the README with the required steps. The preceding paragraph and the new instructions should probably become their own section called "How it works".
@tomwayson I have begun to look into this, and admittedly only with a half hour spent on it so far, I've had luck with @imports in the main styles.css, rather than adding full hrefs to the apps[0].styles array. For example:
@tomwayson and @jwasilgeo, looking at the getting started guide for the Angular Material 2 project it looks like the recommendation for adding the font icons styles is in the index.html even in an Angular CLI app. I would assume this would go for any remote libraries that you wanted included (i.e. main.css from arcgis.com).
As for things like the theming CSS that you would be grabbing from local files in the node_modules directory using the @import statement like this seems appropriate. Another reference for that can be found in the Angular Material 2 Theming Guide.
Activity
tomwayson commentedon Dec 20, 2016
Would also want to update the sentance under the goal section of the README with the required steps. The preceding paragraph and the new instructions should probably become their own section called "How it works".
jwasilgeo commentedon Feb 1, 2017
@tomwayson I have begun to look into this, and admittedly only with a half hour spent on it so far, I've had luck with
@imports in the main styles.css, rather than adding full hrefs to theapps[0].stylesarray. For example:Then, these get added to the DOM:

I'll look a bit more at the angular-cli source to see if there's a way to define links in the
angular-cli.json.TheKeithStewart commentedon Feb 1, 2017
@tomwayson and @jwasilgeo, looking at the getting started guide for the Angular Material 2 project it looks like the recommendation for adding the font icons styles is in the index.html even in an Angular CLI app. I would assume this would go for any remote libraries that you wanted included (i.e. main.css from arcgis.com).
As for things like the theming CSS that you would be grabbing from local files in the node_modules directory using the
@importstatement like this seems appropriate. Another reference for that can be found in the Angular Material 2 Theming Guide.jwasilgeo commentedon Feb 1, 2017
Interesting, thanks for pointing all that out, @kgs916.
How do y'all want to proceed?
tomwayson commentedon Feb 1, 2017
Thanks guys.
@importstatements work for me - less ✨magic✨. Main thing I care about are:jwasilgeo commentedon Feb 1, 2017
On it.
- moved css imports to styles.css and out of index.html