7 lines
898 B
JavaScript
Raw Normal View History

2020-05-19 11:43:42 +03:00
/*!
* AngularJS Material Design
* https://github.com/angular/material
* @license MIT
* v1.1.18-master-97a1616
*/
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");