0
我正尝试在可编辑的网格中使用ui-select下拉菜单。 这是我的编辑单元模板的样子: -ng网格中的角度ui选择
editableCellTemplate: "<ui-select ng-model=\"COL_FIELD\" ng-class=\"'colt' + col.index\" theme=\"bootstrap\"><match placeholder=\"Choose client Account..\"></match><choices repeat=\"client in clients | filter: $select.search\"><div ng-bind-html=\"client.clientAccount | highlight: $select.search\"></div></choices></ui-select>"
不过,我不能够选择的值绑定到类,
ng-class=\"'colt' + col.index\"
我得到我的控制台上看到以下错误:
Error: [$parse:syntax] Syntax Error: Token '{' is an unexpected token at column 20 of the expression ['colt' + col.index {open: $select.open}] starting at [{open: $select.open}].
的HTML生成如下:
基本上生成的html为ng-class =“'colt'+ col.index {open:$ select.open}”,并且大括号产生语法错误..
任何人都面临类似的问题?