Files
InventoryTracker/InventoryTraker.Web/js/utility/ErrorList.js
T
2016-09-16 10:34:14 -04:00

23 lines
433 B
JavaScript

(function() {
'use strict';
window.app.directive('errorList', errorList);
function errorList() {
return {
scope: {
errors: "=",
editMsg: "="
},
templateUrl: '/utility/template/errorList.tmpl.cshtml',
controller: controller,
controllerAs: 'vm'
}
}
controller.$inject = ['$scope'];
function controller($scope) {
var vm = this;
vm.errors = $scope.errors;
vm.editMsg = $scope.editMsg;
}
})();