Focus Element Directive - AngularJS
Hi Guys,
Just a quick post about a small angular directive that can be very helpful if you want to focus elements on pages.
For example, as soon as you open up a page, you want first input box to be highlighted. In these kind of scenarios, I have found this directive very helpful.
Below is the code: