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 1 kB
/*! * AngularJS Material Design * https://github.com/angular/material * @license MIT * v1.2.0-master-93518bb */ !function(e,l){"use strict";function t(c,s,m,u,o){return{restrict:"E",replace:!0,transclude:!0,template:'<div class="md-subheader _md"> <div class="md-subheader-inner"> <div class="md-subheader-content"></div> </div></div>',link:function(i,n,e,t,d){m(n),n.addClass("_md"),u.prefixer().removeAttribute(n,"ng-repeat");var r=n[0].outerHTML;function a(e){return l.element(e[0].querySelector(".md-subheader-content"))}e.$set("role","heading"),o.expect(n,"aria-level","2"),d(i,function(e){a(n).append(e)}),n.hasClass("md-no-sticky")||d(i,function(e){var t=s('<div class="md-subheader-wrapper" aria-hidden="true">'+r+"</div>")(i);u.nextTick(function(){a(t).append(e)}),c(i,n,t)})}}}t.$inject=["$mdSticky","$compile","$mdTheming","$mdUtil","$mdAria"],l.module("material.components.subheader",["material.core","material.components.sticky"]).directive("mdSubheader",t)}(window,window.angular);