Vincent Fournier c12dec323f Add refresh options in config.json
Change-Id: I1f8082e2de040f820c551b17eb838082e2053d05
2015-07-31 10:43:42 -04:00

23 lines
721 B
JavaScript

'use strict';
angular.module('bansho.title', [])
.directive('banshoTitle', ['sharedData', function (sharedData) {
return {
restrict: 'E',
templateUrl: 'components/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;
}
}
};
}]);