Javascript 更改角度打断ui-select2中的插值符号时出错:$select.getPlaceholder()
我有一个角度应用程序,我必须使用以下方法将插值符号更改为“(”,而不是“{{”:Javascript 更改角度打断ui-select2中的插值符号时出错:$select.getPlaceholder(),javascript,angularjs,parsing,ui-select2,ui-select,Javascript,Angularjs,Parsing,Ui Select2,Ui Select,我有一个角度应用程序,我必须使用以下方法将插值符号更改为“(”,而不是“{{”: app.config(['$interpolateProvider', function($interpolateProvider){ $interpolateProvider.startSymbol('((').endSymbol('))'); }]); 这通常在整个应用程序中都可以正常工作,但是在ui选择中添加多个属性会引发错误: 错误:[$parse:ueoe]表达式意外结束: $selectMul
app.config(['$interpolateProvider', function($interpolateProvider){
$interpolateProvider.startSymbol('((').endSymbol('))');
}]);
这通常在整个应用程序中都可以正常工作,但是在ui选择中添加多个
属性会引发错误:
错误:[$parse:ueoe]表达式意外结束:
$selectMultiple.getPlaceholder(
$parse/ueoe?p0=%24selectMultiple.getPlaceholder(
at REGEX_STRING_REGEXP(angular.js:63)
在Parser.peek标记处(angular.js:12077)
at Parser.functionCall(angular.js:12377)
位于Parser.primary(angular.js:12054)
位于Parser.unary(angular.js:12330)
在Parser.乘法(angular.js:12313)
在Parser.additional(angular.js:12304)
位于Parser.relational(angular.js:12295)
at Parser.equality(angular.js:12286)
位于Parser.logicalAND(angular.js:12277)
html代码:
<ui-select multiple tagging="tagTransform" tagging-label="new tag" ng-model="tagging.selectedTags" theme="bootstrap" ng-disabled="disabled" style="width: 800px;">
<ui-select-match placeholder="Select tag...">(($item))</ui-select-match>
<ui-select-choices repeat="tag in tagging.tags | filter: $select.search">
<div ng-bind-html="((tag | highlight: $select.search))"></div>
</ui-select-choices>
</ui-select>
($项目))
在ui select中删除多个,效果良好