bansho/app/components/custom_directive/tile/info/info.js
Vincent Fournier 844d9e0e6e Clean config.js and remove container
Change-Id: Ieeb6980232c02ec72a6a0caa707dddbacb008a6f
2015-08-26 16:45:55 -04:00

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;
}
);
}]
};
});