refactor projects list, clean up dependencies and old list generators and factory methods

This commit is contained in:
Haokun-Chen
2018-08-02 12:32:16 -04:00
committed by John Mitchell
parent c95c2a4580
commit 92ac3054c6
18 changed files with 760 additions and 611 deletions

View File

@@ -0,0 +1,19 @@
function IndexProjectsController ($scope, strings, dataset) {
const vm = this;
vm.strings = strings;
vm.count = dataset.data.count;
$scope.$on('updateCount', (e, count) => {
if (count) {
vm.count = count;
}
});
}
IndexProjectsController.$inject = [
'$scope',
'ProjectsStrings',
'Dataset',
];
export default IndexProjectsController;