michahell/pinbored-nwjs

View on GitHub
App/scripts/directives/btnloading.js

Summary

Maintainability
A
0 mins
Test Coverage

/**
 * @ngdoc directive
 * @name pinboredWebkitApp.btnLoading
 * @description
 * # btnLoading directive
 * Directive in the pinboredWebkitApp.
 */
angular.module('pinboredWebkitApp')

  .directive('btnLoading', function(){
    return function(scope, element, attrs){
      scope.$watch(function(){ return scope.$eval(attrs.btnLoading); }, function(){ // args: loading
        // if(loading) return element.button("loading");
        // element.button("reset");
      });
    };
  });