Directive to make arbitrary elements sticky using ngMaterial's $mdSticky service. Used ngMaterial's subheader directive as a reference.
##Usage Assuming you are already using ngMaterial for your project, add mdSticky as a dependancy.
Next, add md-sticky to the element that will become sticky
<div md-sticky>My sticky div</div>