fixes+improvements
This commit is contained in:
@@ -36,7 +36,7 @@ export class UiCommentForm implements OnInit {
|
||||
comment.text = this.form.get("text").value;
|
||||
|
||||
this.commentService.create(comment).subscribe((data) => {
|
||||
this.form.reset();
|
||||
this.formDirective.resetForm();
|
||||
this.change && this.change();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user