I have a data model that looks like this:
myData = [{
"ListName": "list1",
"domain\\UserA": true,
"UserB": true,
"userC": true
}, {
"ListName": "list2",
"domain\\UserA": true,
"UserB": true,
"userC": true
}];
and I am trying to bind in to a ui-grid like this:
$scope.gridOpts = {
data: myData,
columnDefs: [{
field: "ListName",
displayName: 'listName'
},
{
field: "domain\\UserA",
displayName: 'UserA',
cellTemplate: "<div class='ui-grid-cell-contents'><input type='checkbox' ng-checked='{{COL_FIELD CUSTOM_FILTERS}}' /></div>",
},
{
field: "UserB",
displayName: 'UserB',
cellTemplate: "<div class='ui-grid-cell-contents'><input type='checkbox' ng-checked='{{COL_FIELD CUSTOM_FILTERS}}' /></div>",
}
The user without the backslash works just fine, but I cannot bind the user with the embedded baskslash. How do I resolve this?
Plunkr is here : http://plnkr.co/edit/y61beZ4F8aKpHj83J9jx?p=preview