844d9e0e6e
Change-Id: Ieeb6980232c02ec72a6a0caa707dddbacb008a6f
24 lines
766 B
JavaScript
24 lines
766 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.getDataFromInputSource(scope.options.attributes.inputSource, true, null, false, function (data) {
|
|
scope.data = data;
|
|
});
|
|
|
|
scope.isBannerShown = true;
|
|
}
|
|
}
|
|
};
|
|
}]);
|