单个文本字段中的多项技能选择

时间:2017-06-16 05:38:38

标签: angularjs

$scope.skills = [".Net","abc","account","Ajax","Android","Angular JS","Appium","c","Cobol","commerce"];

HTML:

<input type="text" style="margin-left:100px;color:#000;" name="skills" id="skills" class="form-control" ng-required="true" placeholder="Core Skills"  ng-focus="skillsforJobs(model.Skills)" ng-pattern="/^[a-zA-Z\s]*$/" ng-model="model.Skills" typeahead="skills.name for skills in skills | filter:$viewValue | limitTo:10" ng-click="resetCity()"required/ >

问题:从文本字段中选择技能时应该能够同时选择多种技能并且应该附加逗号吗?

1 个答案:

答案 0 :(得分:0)