UNPKG

acha-framework

Version:

is a modular framework on both client (angular.js) and server (node.js) side, it provides security, orm, ioc, obfuscation and ...

37 lines 1.15 kB
(function ($, angular, underscore, window, document, undefined) { 'use strict'; angular.module('frontend.directives').directive('progressbar', [function () { return { restrict: 'E', replace: true, scope: { disabled: '=?', visible: '=?', cssClass: '=?', model: '=?' }, templateUrl: '/templates/framework/directives/progressbar/template.html', link: function (scope, element, attr) { scope.vm = {}; scope.vm.init = function () { if (angular.isUndefined(scope.disabled)) { scope.disabled = false; } if (angular.isUndefined(scope.visible)) { scope.visible = true; } if (angular.isUndefined(scope.cssClass)) { scope.cssClass = ''; } if (angular.isUndefined(scope.model)) { scope.model = 0; } scope.vm.bind(); }; scope.vm.bind = function () { }; scope.vm.init(); } }; }]); }(jQuery, angular, _, window, document));