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 • 891 B
JavaScript
/*!
* AngularJS Material Design
* https://github.com/angular/material
* @license MIT
* v1.2.4-master-bfc8ae7
*/
function mdContentDirective(t){return{restrict:"E",controller:["$scope","$element",function(e,o){this.$scope=e,this.$element=o}],link:function(e,o){o.addClass("_md"),t(o),e.$broadcast("$mdContentLoaded",o),iosScrollFix(o[0])}}}function iosScrollFix(o){angular.element(o).on("$md.pressdown",function(e){"t"===e.pointer.type&&(e.$materialScrollFixed||(e.$materialScrollFixed=!0,0===o.scrollTop?o.scrollTop=1:o.scrollHeight===o.scrollTop+o.offsetHeight&&(o.scrollTop-=1)))})}goog.provide("ngmaterial.components.content"),goog.require("ngmaterial.core"),mdContentDirective.$inject=["$mdTheming"],angular.module("material.components.content",["material.core"]).directive("mdContent",mdContentDirective),ngmaterial.components.content=angular.module("material.components.content");