Permalink
Browse files

use bindToController in job detail directive instead of scope

  • Loading branch information...
michaelsimon committed Jan 22, 2017
1 parent eba612e commit 78813748aa8615d635ce1d9ca7799f72174edd4a
@@ -8,7 +8,8 @@
return {
restrict: 'E',
templateUrl: 'views/jobs/_job_detail.directive.html',
scope: {
controller: 'JobController as vm',
bindToController: {
jobObject: '=',
statuses: '=',
updateStatus: '&'
@@ -1,6 +1,6 @@
<div layout-padding id="SiteBody" ng-cloak>
<div ng-controller="JobController as vm">
<job-detail job-object="vm.jobs.job" statuses="vm.statuses" update-status="vm.updateStatus(job_id, status)"></job-detail>
<div>
<job-detail job-object="vm.jobs.job" statuses="statuses" update-status="updateStatus({id: job_id, status: status})"></job-detail>
<ui-view></ui-view>
</div>

0 comments on commit 7881374

Please sign in to comment.