Menu generation by ngrepeat + input maxlength