Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<!DOCTYPE html>
<head>
<link rel="stylesheet" type="text/css" href="release/ui-grid.css"/>
</head>
<body ng-app="app">
<div ng-controller="MainCtrl">
<div ui-grid="{data:data}"></div>
</div>
<script src="angular.js"></script>
<script src="release/ui-grid.js"></script>
<script>
var app = angular.module('app', ['ui.grid']);
app.controller('MainCtrl', ['$scope', function ($scope) {
$scope.data = [
{ name: 'Bob', title: 'CEO' },
{ name: 'Frank', title: 'Lowly Developer' }
];
}]);
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.