ng-select-all-on-focus

AngularJS directive for selecting all text in an HTML text input when focused

Usage no npm install needed!

<script type="module">
  import ngSelectAllOnFocus from 'https://cdn.skypack.dev/ng-select-all-on-focus';
</script>

README

ng-select-all-on-focus

Commitizen friendly

AngularJS directive for selecting all text in an HTML text input when focused.

Installation

bower install ng-select-all-on-focus

Setup

Include the library in your module.

angular.module('app', [
  'rb.select-all-on-focus'
]);

Usage

<input type="text" rb-select-all-on-focus="true" />