link (scope, elem, attr) {
         elem.attr('max', attr.ngMax);
      }
@ngInject

Custom directive to fix angularjs bug with dynamic max values being overriden to 100.
https://github.com/angular/angular.js/issues/6726

@type {angular.IDirectiveFactory}