flavien peyre 0e33dc7553 Improve variable name
Change-Id: I6fb4c33eec06f440235f67fc198cbcdccbaa0200
2015-08-19 11:23:30 -04:00

22 lines
754 B
JavaScript

'use strict';
angular.module('bansho.container')
.directive('banshoInfo', function () {
return {
restrict: 'E',
templateUrl: 'components/directive/container/info/info.html',
link: function (scope) {
scope.param = scope.$parent.param;
angular.forEach(scope.components, function(component) {
if (component.type === 'info') {
scope.inputSources = component.attributes.inputSource;
}
});
angular.forEach(scope.inputSources, function (inputSource) {
scope.$parent.addDirectiveParamRequirements(inputSource);
});
}
};
});