Skip to content

Commit

Permalink
fix(FormTouchOnHover): replaced input/output naming 🔨
Browse files Browse the repository at this point in the history
  • Loading branch information
flauc committed Jul 4, 2018
1 parent 8bb59c4 commit 841da72
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ Since hovering over it will trigger any validation on the form.

|name|description|
|---|---|
|jpFormTouched|Emits when controls finish looping and every element was touched|
|jpFormTouchOnHover|Emits when controls finish looping and every element was touched|

#### Inputs

|name|type|default|description|
|---|---|---|---|
|jpFormTouchOnHover|FormGroup or FormArray|null|set of controls to loop over|
|jpFormTouched|FormGroup or FormArray|null|set of controls to loop over|

### StopPropagationDirective

Expand Down
2 changes: 1 addition & 1 deletion projects/ng-helpers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jaspero/ng-helpers",
"version": "0.0.7",
"version": "0.0.8",
"peerDependencies": {
"@angular/common": "^6.0.0",
"@angular/core": "^6.0.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ export class FormTouchOnHoverDirective {
/**
* Entry FormGroup which to iterate over
*/
@Input() jpFormTouchOnHover: FormGroup | FormArray;
@Input() jpFormTouched: FormGroup | FormArray;

/**
* Outputs when form finish iterating
*/
@Output() jpFormTouched = new EventEmitter();
@Output() jpFormTouchOnHover = new EventEmitter();

@HostListener('mouseenter')
enter() {
FormTouchOnHoverDirective.markFormGroupTouched(this.jpFormTouchOnHover);
this.jpFormTouched.emit();
FormTouchOnHoverDirective.markFormGroupTouched(this.jpFormTouched);
this.jpFormTouchOnHover.emit();
}
}
2 changes: 1 addition & 1 deletion tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
{
"order": [
"static-field",
"instance-field",
"static-method",
"instance-field",
"instance-method"
]
}
Expand Down

0 comments on commit 841da72

Please sign in to comment.