UNPKG

angular-material

Version:

**[Support for legacy AngularJS ended on January 1st, 2022](https://goo.gle/angularjs-end-of-life). [See `@angular/core` for the actively supported Angular](https://npmjs.com/@angular/core).**

7 lines 739 B
/*! * AngularJS Material Design * https://github.com/angular/material * @license MIT * v1.2.4-master-bfc8ae7 */ !function(){"use strict";function n(c,u){return["$mdUtil","$window",function(a,d){return{restrict:"A",multiElement:!0,link:function(t,o,e){var r=t.$on("$md-resize-enable",function(){r();var n=o[0],i=n.nodeType===d.Node.ELEMENT_NODE?d.getComputedStyle(n):{};t.$watch(e[c],function(n){if(!!n===u){a.nextTick(function(){t.$broadcast("$md-resize")});var e={cachedTransitionStyles:i};a.dom.animator.waitTransitionEnd(o,e).then(function(){t.$broadcast("$md-resize")})}})})}}}]}window.angular.module("material.components.showHide",["material.core"]).directive("ngShow",n("ngShow",!0)).directive("ngHide",n("ngHide",!1))}(window);