ng-grid运行不正常

时间:2015-08-18 09:36:18

标签: angularjs

我正在尝试实现angularjs网格。我遵循了所有的方法,但没有正确加载

enter image description here

角度应用的代码

var app = angular.module('myApp',['ngTouch', 'ui.grid']);

控制器代码

app.controller('myCtrl', ['$scope', function ($scope) {

$scope.myData = [ { "firstName": "Cox", "lastName": "Carney", "company": "Enormo", "employed": true }, { "firstName": "Lorraine", "lastName": "Wise", "company": "Comveyer", "employed": false }, { "firstName": "Nancy", "lastName": "Waters", "company": "Fuelton", "employed": false } ]; }]);

1 个答案:

答案 0 :(得分:1)

因此显示数据,它应该与您的css文件有关。请确保您已正确添加了ui-grid.css(及其依赖项)。

More info