src/form/remaining-chars-count/remaining-chars-count.directive.js
Function link
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function ($scope, $element, $attributes) {
var charsMaxLimit = $attributes.charsMaxLimit;
var charsWarnRemaining = $attributes.charsWarnRemaining;
var countRemainingFld = angular.element(document.getElementById($attributes.countFld));
var blockInputAtMaxLimit = ($attributes.blockInputAtMaxLimit === 'true');