Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular-focus-caret

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

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

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
71
increased by31.48%
Maintainers
1
Weekly downloads
 
Created
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? is receives focus.

<input focus-caret="2"/>

Keywords

FAQs

Package last updated on 02 Sep 2015

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc