var app=angular.module("Index",[]).directive("btnSubmit",function(){return function(a,c,b){a.$watch(function(){return a.$eval(b.btnSubmit)},function(a){var b=$(c).button();a?b.button("loading"):b.button("reset")})}});Index.$inject=["$scope","$http"];function Index(a,c){a.q={};a.user={};c.get("index.json").success(function(b){b.Ok&&(a.user={Email:b.Email})})}; |