Socket
Socket
Sign inDemoInstall

angular-focus-caret

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    angular-focus-caret

Angular 1.x directive to set a caret position whenever an element receives focus


Version published
Maintainers
1
Install size
6.65 kB
Created

Readme

Source

angular-focus-caret

Angular 1.x directive to set a caret position whenever an element receives focus.

Installation

NPM

When using browserify or similar npm-based build system.

In the command line:

npm install angular-focus-caret --save

In your angular composition require() the package as a dependency of your module:

angular.module('myModule', [
  require('angular-focus-caret')
])

The package will export the correct name for its angular module.

Bower

In the command line:

bower install angular-focus-caret --save

In your angular composition list the directive as a dependency of your module:

angular.module('myModule', [
  'focus-caret'
])

Usage

Set caret to the end of content whenever the <input> receives focus.

<input focus-caret/>

Set the caret to index 2 whenever the <input> receives focus.

<input focus-caret="2"/>

Keywords

FAQs

Last updated on 06 Apr 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc