Assuming...
const form = new FormGroup({
foo: new FormControl('bar'),
baz: new FormControl('qux')
});
...you could do something like so:
console.log(this.form.get('foo'));
"ASP.NET Core 2 and Angular 5" by Valerio De Sanctis points at this trick on page 338 and this has some more about it.
No comments:
Post a Comment