Sha256: 9325c6df6452d260b5916e5081a06b77156b578f9a9202d65604cd00670e54d6
Contents?: true
Size: 1015 Bytes
Versions: 16
Compression:
Stored size: 1015 Bytes
Contents
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v0.7.1 */ goog.provide('ng.material.components.icon'); goog.require('ng.material.core'); (function() { 'use strict'; /* * @ngdoc module * @name material.components.icon * @description * Icon */ angular.module('material.components.icon', [ 'material.core' ]) .directive('mdIcon', mdIconDirective); /* * @ngdoc directive * @name mdIcon * @module material.components.icon * * @restrict E * * @description * The `<md-icon>` directive is an element useful for SVG icons * * @usage * <hljs lang="html"> * <md-icon icon="/img/icons/ic_access_time_24px.svg"> * </md-icon> * </hljs> * */ function mdIconDirective() { return { restrict: 'E', template: '<object class="md-icon"></object>', compile: function(element, attr) { var object = angular.element(element[0].children[0]); if(angular.isDefined(attr.icon)) { object.attr('data', attr.icon); } } }; } })();
Version data entries
16 entries across 16 versions & 1 rubygems