Skip to content

Directives to set the focus and blur of an element based on an angular expression.

License

Notifications You must be signed in to change notification settings

jimmyhillis/angular-eyesight

Repository files navigation

angular-eyesight

Directives to set the focus and blur of an element based on an angular expression.

Installation

In your project directory

bower install angular-eyesight --save

Usage

Include eyesight module within your code:

var app = angular.module('app', ['eyesight']);

Include directive with expression within your markup:

<input type="text" focus-if="isFocused === true" />

When isFocused is true, a focus call on the provided element will be set. Please note this will only happen until the value of isFocused is changed away and back to true.

About

Directives to set the focus and blur of an element based on an angular expression.

Resources

License

Stars

Watchers

Forks

Packages

No packages published