Vincent Fournier 5d87fdaacd Improve code naming
Change-Id: If4837f71caca6d594e141fff830c7c2c08376e03
2015-08-24 20:33:27 -04:00

23 lines
728 B
JavaScript

'use strict';
angular.module('bansho.title', [])
.directive('banshoTitle', ['sharedData', function (sharedData) {
return {
restrict: 'E',
templateUrl: 'components/custom_directive/title/title.html',
scope: {
options: '='
},
link: function (scope) {
if (scope.options.attributes.item) {
scope.item = scope.options.attributes.item;
scope.data = sharedData.getData(scope.options.attributes.provider, function (data) {
scope.data = data;
});
scope.isBannerShown = true;
}
}
};
}]);