angular-ui/ui-grid

If any column name contains some text enclosed by round brackets '()' then table will not be rendered

Open

#6,401 建立於 2017年9月24日

在 GitHub 查看
 (1 留言) (0 反應) (1 負責人)JavaScript (2,496 fork)batch import
difficulty: mediumhelp wanted

倉庫指標

Star
 (5,395 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Suppose I have a json array name myEmployees as $scope.myEmployees = [{ "firstName (Employee Name)": "Cox", "lastName": "Carney", "company": "Enormo", "employed": true }, { "firstName (Employee Name)": "Lorraine", "lastName": "Wise", "company": "Comveyer", "employed": false }, { "firstName (Employee Name)": "Nancy", "lastName": "Waters", "company": "Fuelton", "employed": false }];

Here is my html. <div id="grid1" ui-grid="{ data: myEmployees }" class="grid"></div>

This code produces error and table will not be rendered. An example of this issue is here, Plunker Link

貢獻者指南