(function() { 'use strict'; var app = angular.module('showcaseReviewer'); var templatePath = modulesSharedResourcesUrl + 'Modules/ShowcaseReviewer/Views/'; //a directive that renders a completed form (not as a completable form but as markup) app.directive('showcasesForReview', ['showcaseReviewerDataContext', function (dataContext) { return { restrict: 'E', scope: { }, templateUrl: templatePath + 'showcasesforreview.html?version=270122', link: link }; function link(scope, elem, attrs) { dataContext.getMyShowcasesToReview().then(function (showcases) { scope.showcases = showcases; }); } }]); })();