feat(input): make expressions work for ng-Maxlength and ng-Minlength

ng-minlength and ng-maxlength attributes do not accept expressions as
input parameter.
Make it work as intended. Fix based on #1077.

Closes #1405