These are chat archives for angular/material

23rd
Dec 2015
Mathew Foscarini
@thinkingmedia
Dec 23 2015 15:46
@sarod I don't think there is such an API. You would have to just define your own list of colors.
Maciek Murawski
@Murarz208
Dec 23 2015 17:43
Hello, I have a problem with loading svg images, they are loaded directly from server not from template cache, is there any way to force angular material to seek cache first?
Erwan DATIN
@MacKentoch
Dec 23 2015 18:05
@Murarz208 yes sure. $mdIconProvider to manage your icons then cache them at app.run. There is a good example on the websitehttps://material.angularjs.org/latest/demo/icon
Maciek Murawski
@Murarz208
Dec 23 2015 20:45
@MacKentoch I didn't write that - I have problem with svg images provided by angular material, like md-tabs-arrow.svg in md-tabs. In browser console I have an error that http://localhost:8080/md-tabs-arrow.svg cannot be loaded (404) and I wonder why icon is loaded directly from server, why not from $templateCache (md-tabs-arrow.svg is available in $templateCache, I've checked that)
Erwan DATIN
@MacKentoch
Dec 23 2015 20:49
@Murarz208 sorry. In fact I always just use svg icons from Google (I get them from npm). I never use embedded icons.