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 • 739 B
JavaScript
/*!
* AngularJS Material Design
* https://github.com/angular/material
* @license MIT
* v1.2.0-master-93518bb
*/
!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);