844d9e0e6e
Change-Id: Ieeb6980232c02ec72a6a0caa707dddbacb008a6f
21 lines
778 B
JavaScript
21 lines
778 B
JavaScript
'use strict';
|
|
|
|
angular.module('bansho.tile')
|
|
.directive('banshoTileInfo', function () {
|
|
return {
|
|
restrict: 'E',
|
|
scope: {
|
|
options: '='
|
|
},
|
|
templateUrl: 'components/custom_directive/tile/info/info.html',
|
|
controller: ['$scope', 'sharedData', 'templateManager', 'iframeUrl', function ($scope, sharedData, templateManager, iframeUrl) {
|
|
$scope.title = $scope.options.attributes.title;
|
|
sharedData.getDataFromInputSource($scope.options.attributes.inputSource, false,
|
|
templateManager.getAllPageParams(), false, function (data) {
|
|
$scope.data = data;
|
|
}
|
|
);
|
|
}]
|
|
};
|
|
});
|