- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
if($scope.model.table){
if($scope.model.table.cells == null){
if($scope.model.table.cols){
$scope.model.table.cells = $scope.model.table.cols;
}
}
if($scope.model.table.heads && $scope.model.table.cols == null){
$scope.model.table.cols = [];
$scope.model.table.heads.forEach(function(head){
$scope.model.table.cols.push({head:head});
});
$scope.model.table.cells.forEach(function(cell, i){
$scope.model.table.cols[i] = {cell:cell};
});
}
}
Комментарии (0) RSS
Добавить комментарий