From f2c6baf87c7f10fb6a5a3c44ca43b0ac7efe35be Mon Sep 17 00:00:00 2001 From: Igor Partola Date: Fri, 20 Jun 2014 15:15:27 -0400 Subject: [PATCH] Adding attr-maxlength to set the maxlength of the input element. --- script/ac_template.html | 3 ++- script/autocomplete.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/script/ac_template.html b/script/ac_template.html index 8058d84..e99d0a7 100644 --- a/script/ac_template.html +++ b/script/ac_template.html @@ -4,7 +4,8 @@ ng-model="searchParam" placeholder="{{ attrs.placeholder }}" class="{{ attrs.inputclass }}" - id="{{ attrs.inputid }}"/> + id="{{ attrs.inputid }}" + maxlength="{{ attrs.maxlength }}"/>