Add model and resolve block to sandbox view

This commit is contained in:
gconsidine
2017-11-03 13:44:26 -04:00
committed by Jake McDermott
parent 212ab96a31
commit 5b8d2e7659
5 changed files with 37 additions and 8 deletions
+14 -3
View File
@@ -17,9 +17,20 @@ function JobsRun ($stateExtender, strings) {
activityStreamTarget: 'jobs'
},
views: {
templateUrl: indexTemplate,
controller: IndexController,
controllerAs: 'vm'
'@': {
templateUrl: indexTemplate,
controller: IndexController,
controllerAs: 'vm'
}
},
resolve: {
resolved: ['JobsModel', Jobs => {
const jobs = new Jobs();
return {
models: { jobs }
};
}]
}
});
}