I want to use Angular Material with Material Design Icon... (No icons font but SVG)
But I don't know how to...
HTML:
<!-- Icon ID; may contain optional icon set prefix; -->
<!-- icons must registered using $mdIconProvider - OK, but doesn't work -->
<md-icon md-svg-icon="social:android" aria-label="android "></md-icon>
JS: (For example social set)
angular.module('appSvgIconSets', ['ngMaterial'])
.controller('DemoCtrl', function($scope) {})
.config(function($mdIconProvider) {
$mdIconProvider
.iconSet('social', 'url/to/sets/social-icons.svg', 24)
.defaultIconSet('url/to/sets/core-icons.svg', 24);
});
There is no path to sets into https://github.com/google/material-design-icons/tree/master/social/svg/production
I must declare all icon individually ? ^^ strange...
Anyone know the secret ?