-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.speclistcontroller.js
41 lines (41 loc) · 1.84 KB
/
app.speclistcontroller.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
36
37
38
39
40
41
//import {NgTableParams} from 'libs/ng-table/ng-table';
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var App;
(function (App) {
var SpecListController = (function (_super) {
__extends(SpecListController, _super);
function SpecListController($scope, NgTableParams, courses) {
_super.call(this, $scope, NgTableParams, courses);
this._ngParam = NgTableParams;
}
Object.defineProperty(SpecListController.prototype, "specializations", {
/**
* @property {Specialization[]} specializations The specialization data as an array
* The one thing this controller is different compared to its parent, CourseMatrixController, is that its table contains the specializations
* The parent lists the courses (just as the courselistcontroller) and colors them based on specializations, this lists the specializations themselves
* The rest of the difference is on the HTML side
*/
get: function () {
return this._specializations;
},
set: function (s) {
this._specializations = s;
this.tableParams = new this._ngParam({
count: 80 // initial page size
}, {
counts: [],
dataset: this._specializations
});
},
enumerable: true,
configurable: true
});
return SpecListController;
})(App.CourseMatrixController);
App.SpecListController = SpecListController;
})(App || (App = {}));
//# sourceMappingURL=app.speclistcontroller.js.map