UNPKG

angular-material

Version:

This repository publishes the AngularJS Material v1.x library and localized installs using `npm`. You can find the component source-code for this library in the [AngularJS Material repository](https://github.com/angular/material).

7 lines 752 B
/*! * AngularJS Material Design * https://github.com/angular/material * @license MIT * v1.2.0-master-93518bb */ function MdWhiteframeDirective(m){return{link:function(e,r,t){var i="";t.$observe("mdWhiteframe",function(e){-1!=(e=parseInt(e,10)||4)&&(24<e||e<1)&&(m.warn("md-whiteframe attribute value is invalid. It should be a number between 1 and 24",r[0]),e=4);var a=-1==e?"":"md-whiteframe-"+e+"dp";t.$updateClass(a,i),i=a})}}}goog.provide("ngmaterial.components.whiteframe"),goog.require("ngmaterial.core"),MdWhiteframeDirective.$inject=["$log"],angular.module("material.components.whiteframe",["material.core"]).directive("mdWhiteframe",MdWhiteframeDirective),ngmaterial.components.whiteframe=angular.module("material.components.whiteframe");