<commit_before>ngEnter
=======

Trigger an expression when the enter key is pressed.



DEMO
-------
https://kimsunwook.github.io/ngLoadingButton/index

INSTALL
-------

```
bower install ng-enter --save
```



USAGE
-----

Make sure you include the module 'ngEnter' in your application config

```
angular.module('myApp', [
  'ngEnter',
  ...
]);
```

```
<input
  ng-enter="message = 'enter pressed'" // Invoked when you press the Enter key
  ng-enter-model="model" // If you do not put object, $enter and $entered values ​​are stored in scope.
  ng-enter-duration="1000" // The value of $ enter lasts true and the default value is 100 (ms).
  ng-class="[
    {'enter_classes':model.$enter}, // The value of $enter becomes true on click and turns false after duration (ms).
    {'enter_classes':model.$entered} // The value of $entered is true when clicked and does not change.
  ]">
```

Once enter is pressed

```
$scope.message === 'enter pressed' // true
$scope.model.$enter === true // true
$scope.model.$entered === true // true
```



Easy!<commit_msg>Change README.md<commit_after>ngEnter
=======

Trigger an expression when the enter key is pressed.

<br/>

DEMO
-------
https://kimsunwook.github.io/ngEnter/index

INSTALL
-------

```
bower install ng-enter --save
```

<br/>

USAGE
-----

Make sure you include the module 'ngEnter' in your application config

```
angular.module('myApp', [
  'ngEnter',
  ...
]);
```

```
<input
  ng-enter="message = 'enter pressed'" // Invoked when you press the Enter key
  ng-enter-model="model" // If you do not put object, $enter and $entered values ​​are stored in scope.
  ng-enter-duration="1000" // The value of $ enter lasts true and the default value is 100 (ms).
  ng-class="[
    {'enter_classes':model.$enter}, // The value of $enter becomes true on click and turns false after duration (ms).
    {'enter_classes':model.$entered} // The value of $entered is true when clicked and does not change.
  ]">
```

Once enter is pressed

```
$scope.message === 'enter pressed' // true
$scope.model.$enter === true // true
$scope.model.$entered === true // true
```

<br/>

Easy!
{'fraction_non_alphanumeric': 0.16885553470919323, 'fraction_numerical': 0.006566604127579738, 'mean_word_length': 3.249003984063745, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1804230', 'n_tokens_mistral': 701, 'n_tokens_neox': 648, 'n_words': 233}