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 897 B
/*! * AngularJS Material Design * https://github.com/angular/material * @license MIT * v1.2.0-master-93518bb */ function createDirective(d,m){return["$mdUtil","$window",function(a,c){return{restrict:"A",multiElement:!0,link:function(t,o,i){var r=t.$on("$md-resize-enable",function(){r();var e=o[0],n=e.nodeType===c.Node.ELEMENT_NODE?c.getComputedStyle(e):{};t.$watch(i[d],function(e){if(!!e===m){a.nextTick(function(){t.$broadcast("$md-resize")});var i={cachedTransitionStyles:n};a.dom.animator.waitTransitionEnd(o,i).then(function(){t.$broadcast("$md-resize")})}})})}}}]}goog.provide("ngmaterial.components.showHide"),goog.require("ngmaterial.core"),angular.module("material.components.showHide",["material.core"]).directive("ngShow",createDirective("ngShow",!0)).directive("ngHide",createDirective("ngHide",!1)),ngmaterial.components.showHide=angular.module("material.components.showHide");