"use strict";
define([], function(){
	var FocusDirective =  function ($parse) {
			return{
				link : function(scope, element,attrs) {
					scope.$watch($parse(attrs.focus), function(value) {
						if (value === true)
							element[0].focus();
					});
				}
			}
        };
	FocusDirective.$inject = ['$parse'];
	return {
		focus: FocusDirective
	};
});
"use strict";
define([], function(){
	var FocusDirective =  function ($timeout,$parse) {
			return{
				link : function(scope, element,attrs) {
					scope.$watch($parse(attrs.focus), function(value) {
						if (value === true)
							$timeout(function(){element[0].focus();});
					});
				}
			}
        };
	FocusDirective.$inject = ['$timeout','$parse'];
	return {
		focus: FocusDirective
	};
});
Implement timeout on focus directive
Implement timeout on focus directive
