19 lines
680 B
JavaScript
19 lines
680 B
JavaScript
'use strict';
|
|
|
|
angular.module('bansho.tactical.current_health', ['bansho.surveil',
|
|
'ngJustGage'])
|
|
|
|
.directive('banshoCurrentHealth', ['$compile', '$rootScope', function ($compile, $rootScope) {
|
|
return {
|
|
restrict: 'E',
|
|
templateUrl: 'components/custom_directive/tactical/current_health/current_health.html',
|
|
link: function (scope, element) {
|
|
$rootScope.$watch('themeClassSize', function( sizeclass) {
|
|
scope.themeClassSize = sizeclass;
|
|
$compile(element.contents())(scope);
|
|
});
|
|
}
|
|
|
|
};
|
|
}]);
|