Socket
Socket
Sign inDemoInstall

ng-click-select

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ng-click-select

Angular directive to select contents of text input when clicked.


Version published
Weekly downloads
398
decreased by-19.6%
Maintainers
1
Install size
6.72 kB
Created
Weekly downloads
 

Readme

Source

ng-click-select

This branch is for Angular 2. For Angular 1.x, see the 1.x branch.

Angular directive to select contents of text input or text area elements when clicked. Useful to allow user to easily copy value into their clipboard without a Flash-based solution like ZeroClipboard.

See demo.

Also available at ngModules.org.

In The Wild

These projects use ng-click-select:

Install

Depends on Angular 2.

Via Bower:

$ bower install --save ng-click-select#2

Then include src/ng-click-select.js in your page.

And/or add it as a dependency of your module, e.g.:

import NgClickSelect from 'src/ng-click-select';

@Component({
  /* ... */
})
@View({
  template: '<input type="text" ng-click-select />',
  directives: [NgClickSelect]
})
class NgClickSelectExample {
  /* ... */
}

Examples

Inputs

<input type="text" ng-click-select />

Textareas

<textarea class="ng-click-select"></textarea>

Build

npm i
tsd reinstall
npm run tsc

FAQs

Last updated on 10 Apr 2019

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