/*! * 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 `` directive is an element useful for SVG icons * * @usage * * * * * */ function mdIconDirective() { return { restrict: 'E', template: '', compile: function(element, attr) { var object = angular.element(element[0].children[0]); if(angular.isDefined(attr.icon)) { object.attr('data', attr.icon); } } }; } })();