forked from angular-ui/ui-grid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.js
35 lines (34 loc) · 1.22 KB
/
test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
function gridController($scope) {
$scope.myData = [{name: "Aislin", age: "4"},
{name: "Desmond", age: "2"},
{name: "Tim", age: "27"},
{name: "Anna", age: "29"}];
}
angular.module('grid', [])
// Register the 'myCurrentTime' directive factory method.
// We inject $timeout and dateFilter service since the factory method is DI.
.directive('ngGrid', function($timeout, dateFilter) {
// return the directive link function. (compile function not needed)
return {
compile: function compile(tElement, tAttrs, transclude) {
return {
pre: function preLink(scope, iElement, iAttrs, controller) {
return;
},
post: function postLink(scope, iElement, iAttrs, controller) {
return;
}
};
},
link: function link(scope, iElement, iAttrs) {
return {
pre: function preLink(scope, iElement, iAttrs, controller) {
return;
},
post: function postLink(scope, iElement, iAttrs, controller) {
return;
}
};
}
};
});