Angular 7 - Save register by id using radio button2019 Community Moderator ElectionPass radio button values to component as Form data on Form Submit in Angular2Angular 2 Radio Button Validation with ngModelHow to fetch radio button value dynamically in angular 2?Angular 2: check radio button on div clickAngular check radio button using object as valueFormGroup containing Radio Buttons with an Angular FormArrayAngular Reactive forms default input valueGetting first value as “undefined” while retrieving selected material radio button value using ngModelAngular 4 : Check if radio button selected in a reactive formAngular template reference variable for radio buttons
Is this nominative case or accusative case?
Can a space-faring robot still function over a billion years?
3.5% Interest Student Loan or use all of my savings on Tuition?
Deal the cards to the players
Are small insurances worth it
What is better: yes / no radio, or simple checkbox?
How to write a chaotic neutral protagonist and prevent my readers from thinking they are evil?
I can't die. Who am I?
When to use the term transposed instead of modulation?
Ignoring Someone as Wrongful Speech
Why are special aircraft used for the carriers in the United States Navy?
Practical reasons to have both a large police force and bounty hunting network?
Has a sovereign Communist government ever run, and conceded loss, on a fair election?
Can inspiration allow the Rogue to make a Sneak Attack?
Are healthy patients an appropriate control group?
Are Wave equations equivalent to Maxwell equations in free space?
Questions of the type "What do you think other people would think?"
What's the difference between Compensation, Indemnity, and Reparations?
Align equations with text before one of them
Infinitive vs Gerund
Python 3.6+ function to ask for a multiple-choice answer
Ultrafilters as a double dual
Giving a talk in my old university, how prominently should I tell students my salary?
The past tense for the quoting particle って
Angular 7 - Save register by id using radio button
2019 Community Moderator ElectionPass radio button values to component as Form data on Form Submit in Angular2Angular 2 Radio Button Validation with ngModelHow to fetch radio button value dynamically in angular 2?Angular 2: check radio button on div clickAngular check radio button using object as valueFormGroup containing Radio Buttons with an Angular FormArrayAngular Reactive forms default input valueGetting first value as “undefined” while retrieving selected material radio button value using ngModelAngular 4 : Check if radio button selected in a reactive formAngular template reference variable for radio buttons
This is my html code:
<div class="row" *ngFor="let new of data">
<div
class="col-md-12 col-xl-12 col-sm-12"
[ngClass]=" divSelected: new.idcontentnew == idSelected "
>
<div class="form-group">
<input
type="radio"
id="inputIdNew new.idcontentnew "
name="inputIdNew"
[(ngModel)]="inputIdUpdate"
[value]="new.idcontentnew"
(click)="selected(new.idcontentnew)"
/>
<label for="id">Select notice</label>
</div>
<div class="form-group">
<input
type="text"
id="inputTitle new.idcontentnew "
name="inputTitle new.idcontentnew "
[(ngModel)]="new.title"
/>
</div>
<div class="form-group">
<input
type="text"
id="inputText new.idcontentnew "
name="inputText new.idcontentnew "
[(ngModel)]="new.text"
/>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 col-xl-12 col-sm-12">
<button
type="button"
class="btn btn-outline-dark"
(click)="save(inputIdNew, new)"
>
Save
</button>
</div>
</div>
When I click on the "save" button I pass the parameters of the id value of the selected radio button, but I do not know how to pass it an object that will contains the data that I am going to modify and save, of the id selected with the radio button.
This is the ts code
save(id: number, userItem: NewsModel)
this.newRegistry.idcontentnew = id;
this.newRegistry.text = 'aaaaa';// should contain the text model value in base to the selected radio button
this.newRegistry.title = 'bbbbbb'; // should contain the title model value in base to the selected radio button
this.homeService.save(this.newRegistry)
.subscribe(
data => this.route.navigate(['/home']),
error => this.loginService.closeLogin()
);
How I could do it? thanks,
angular
add a comment |
This is my html code:
<div class="row" *ngFor="let new of data">
<div
class="col-md-12 col-xl-12 col-sm-12"
[ngClass]=" divSelected: new.idcontentnew == idSelected "
>
<div class="form-group">
<input
type="radio"
id="inputIdNew new.idcontentnew "
name="inputIdNew"
[(ngModel)]="inputIdUpdate"
[value]="new.idcontentnew"
(click)="selected(new.idcontentnew)"
/>
<label for="id">Select notice</label>
</div>
<div class="form-group">
<input
type="text"
id="inputTitle new.idcontentnew "
name="inputTitle new.idcontentnew "
[(ngModel)]="new.title"
/>
</div>
<div class="form-group">
<input
type="text"
id="inputText new.idcontentnew "
name="inputText new.idcontentnew "
[(ngModel)]="new.text"
/>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 col-xl-12 col-sm-12">
<button
type="button"
class="btn btn-outline-dark"
(click)="save(inputIdNew, new)"
>
Save
</button>
</div>
</div>
When I click on the "save" button I pass the parameters of the id value of the selected radio button, but I do not know how to pass it an object that will contains the data that I am going to modify and save, of the id selected with the radio button.
This is the ts code
save(id: number, userItem: NewsModel)
this.newRegistry.idcontentnew = id;
this.newRegistry.text = 'aaaaa';// should contain the text model value in base to the selected radio button
this.newRegistry.title = 'bbbbbb'; // should contain the title model value in base to the selected radio button
this.homeService.save(this.newRegistry)
.subscribe(
data => this.route.navigate(['/home']),
error => this.loginService.closeLogin()
);
How I could do it? thanks,
angular
1
It should just bethis.newRegistry.text = userItem.text
from what I understand. But maybe you should read more about ReactiveForms.
– Bernard Pagoaga
yesterday
add a comment |
This is my html code:
<div class="row" *ngFor="let new of data">
<div
class="col-md-12 col-xl-12 col-sm-12"
[ngClass]=" divSelected: new.idcontentnew == idSelected "
>
<div class="form-group">
<input
type="radio"
id="inputIdNew new.idcontentnew "
name="inputIdNew"
[(ngModel)]="inputIdUpdate"
[value]="new.idcontentnew"
(click)="selected(new.idcontentnew)"
/>
<label for="id">Select notice</label>
</div>
<div class="form-group">
<input
type="text"
id="inputTitle new.idcontentnew "
name="inputTitle new.idcontentnew "
[(ngModel)]="new.title"
/>
</div>
<div class="form-group">
<input
type="text"
id="inputText new.idcontentnew "
name="inputText new.idcontentnew "
[(ngModel)]="new.text"
/>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 col-xl-12 col-sm-12">
<button
type="button"
class="btn btn-outline-dark"
(click)="save(inputIdNew, new)"
>
Save
</button>
</div>
</div>
When I click on the "save" button I pass the parameters of the id value of the selected radio button, but I do not know how to pass it an object that will contains the data that I am going to modify and save, of the id selected with the radio button.
This is the ts code
save(id: number, userItem: NewsModel)
this.newRegistry.idcontentnew = id;
this.newRegistry.text = 'aaaaa';// should contain the text model value in base to the selected radio button
this.newRegistry.title = 'bbbbbb'; // should contain the title model value in base to the selected radio button
this.homeService.save(this.newRegistry)
.subscribe(
data => this.route.navigate(['/home']),
error => this.loginService.closeLogin()
);
How I could do it? thanks,
angular
This is my html code:
<div class="row" *ngFor="let new of data">
<div
class="col-md-12 col-xl-12 col-sm-12"
[ngClass]=" divSelected: new.idcontentnew == idSelected "
>
<div class="form-group">
<input
type="radio"
id="inputIdNew new.idcontentnew "
name="inputIdNew"
[(ngModel)]="inputIdUpdate"
[value]="new.idcontentnew"
(click)="selected(new.idcontentnew)"
/>
<label for="id">Select notice</label>
</div>
<div class="form-group">
<input
type="text"
id="inputTitle new.idcontentnew "
name="inputTitle new.idcontentnew "
[(ngModel)]="new.title"
/>
</div>
<div class="form-group">
<input
type="text"
id="inputText new.idcontentnew "
name="inputText new.idcontentnew "
[(ngModel)]="new.text"
/>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 col-xl-12 col-sm-12">
<button
type="button"
class="btn btn-outline-dark"
(click)="save(inputIdNew, new)"
>
Save
</button>
</div>
</div>
When I click on the "save" button I pass the parameters of the id value of the selected radio button, but I do not know how to pass it an object that will contains the data that I am going to modify and save, of the id selected with the radio button.
This is the ts code
save(id: number, userItem: NewsModel)
this.newRegistry.idcontentnew = id;
this.newRegistry.text = 'aaaaa';// should contain the text model value in base to the selected radio button
this.newRegistry.title = 'bbbbbb'; // should contain the title model value in base to the selected radio button
this.homeService.save(this.newRegistry)
.subscribe(
data => this.route.navigate(['/home']),
error => this.loginService.closeLogin()
);
How I could do it? thanks,
angular
angular
edited yesterday
Chenna
302414
302414
asked yesterday
EladerezadorEladerezador
45221324
45221324
1
It should just bethis.newRegistry.text = userItem.text
from what I understand. But maybe you should read more about ReactiveForms.
– Bernard Pagoaga
yesterday
add a comment |
1
It should just bethis.newRegistry.text = userItem.text
from what I understand. But maybe you should read more about ReactiveForms.
– Bernard Pagoaga
yesterday
1
1
It should just be
this.newRegistry.text = userItem.text
from what I understand. But maybe you should read more about ReactiveForms.– Bernard Pagoaga
yesterday
It should just be
this.newRegistry.text = userItem.text
from what I understand. But maybe you should read more about ReactiveForms.– Bernard Pagoaga
yesterday
add a comment |
1 Answer
1
active
oldest
votes
You can change your html like this.
you can set full object as input value by changing
<input type="radio" id="inputIdNewnew.idcontentnew" name="inputIdNew" [(ngModel)]="inputIdUpdate" [value]="new.idcontentnew" (click)="selected(new.idcontentnew);" /> <label for="id">Select notice</label>
to
<input type="radio" id="inputIdNewnew.idcontentnew" name="inputIdNew" [(ngModel)]="inputIdUpdate" [value]="new" (click)="selected(new.idcontentnew);" /> <label for="id">Select notice</label>
Now change the button function reference here.
<button type="button" class="btn btn-outline-dark" (click)="save(inputIdNew, inputIdUpdate);">Save</button>
full code
<div class="row" *ngFor="let new of data">
<div class="col-md-12 col-xl-12 col-sm-12" [ngClass]="'divSelected': new.idcontentnew == idSelected">
<div class="form-group">
<input type="radio" id="inputIdNewnew.idcontentnew" name="inputIdNew" [(ngModel)]="inputIdUpdate" [value]="new" (click)="selected(new.idcontentnew);" /> <label for="id">Select notice</label>
</div>
<div class="form-group">
<input type="text" id="inputTitlenew.idcontentnew" name="inputTitlenew.idcontentnew" [(ngModel)]="new.title" />
</div>
<div class="form-group">
<input type="text" id="inputTextnew.idcontentnew" name="inputTextnew.idcontentnew" [(ngModel)]="new.text" />
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 col-xl-12 col-sm-12">
<button type="button" class="btn btn-outline-dark" (click)="save(inputIdNew, inputIdUpdate);">Save</button>
</div>
</div>
now you can get your userItem here just as before
save(id: number, userItem: NewsModel)
this.newRegistry.idcontentnew = id;
this.newRegistry.text = 'aaaaa';// should contain the text model value in base to the selected radio button
this.newRegistry.title = 'bbbbbb'; // should contain the title model value in base to the selected radio button
this.homeService.save(this.newRegistry)
.subscribe(
data => this.route.navigate(['/home']),
error => this.loginService.closeLogin()
);
good idea, how I did not realize before, working ok, thanksss
– Eladerezador
23 hours ago
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55023262%2fangular-7-save-register-by-id-using-radio-button%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can change your html like this.
you can set full object as input value by changing
<input type="radio" id="inputIdNewnew.idcontentnew" name="inputIdNew" [(ngModel)]="inputIdUpdate" [value]="new.idcontentnew" (click)="selected(new.idcontentnew);" /> <label for="id">Select notice</label>
to
<input type="radio" id="inputIdNewnew.idcontentnew" name="inputIdNew" [(ngModel)]="inputIdUpdate" [value]="new" (click)="selected(new.idcontentnew);" /> <label for="id">Select notice</label>
Now change the button function reference here.
<button type="button" class="btn btn-outline-dark" (click)="save(inputIdNew, inputIdUpdate);">Save</button>
full code
<div class="row" *ngFor="let new of data">
<div class="col-md-12 col-xl-12 col-sm-12" [ngClass]="'divSelected': new.idcontentnew == idSelected">
<div class="form-group">
<input type="radio" id="inputIdNewnew.idcontentnew" name="inputIdNew" [(ngModel)]="inputIdUpdate" [value]="new" (click)="selected(new.idcontentnew);" /> <label for="id">Select notice</label>
</div>
<div class="form-group">
<input type="text" id="inputTitlenew.idcontentnew" name="inputTitlenew.idcontentnew" [(ngModel)]="new.title" />
</div>
<div class="form-group">
<input type="text" id="inputTextnew.idcontentnew" name="inputTextnew.idcontentnew" [(ngModel)]="new.text" />
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 col-xl-12 col-sm-12">
<button type="button" class="btn btn-outline-dark" (click)="save(inputIdNew, inputIdUpdate);">Save</button>
</div>
</div>
now you can get your userItem here just as before
save(id: number, userItem: NewsModel)
this.newRegistry.idcontentnew = id;
this.newRegistry.text = 'aaaaa';// should contain the text model value in base to the selected radio button
this.newRegistry.title = 'bbbbbb'; // should contain the title model value in base to the selected radio button
this.homeService.save(this.newRegistry)
.subscribe(
data => this.route.navigate(['/home']),
error => this.loginService.closeLogin()
);
good idea, how I did not realize before, working ok, thanksss
– Eladerezador
23 hours ago
add a comment |
You can change your html like this.
you can set full object as input value by changing
<input type="radio" id="inputIdNewnew.idcontentnew" name="inputIdNew" [(ngModel)]="inputIdUpdate" [value]="new.idcontentnew" (click)="selected(new.idcontentnew);" /> <label for="id">Select notice</label>
to
<input type="radio" id="inputIdNewnew.idcontentnew" name="inputIdNew" [(ngModel)]="inputIdUpdate" [value]="new" (click)="selected(new.idcontentnew);" /> <label for="id">Select notice</label>
Now change the button function reference here.
<button type="button" class="btn btn-outline-dark" (click)="save(inputIdNew, inputIdUpdate);">Save</button>
full code
<div class="row" *ngFor="let new of data">
<div class="col-md-12 col-xl-12 col-sm-12" [ngClass]="'divSelected': new.idcontentnew == idSelected">
<div class="form-group">
<input type="radio" id="inputIdNewnew.idcontentnew" name="inputIdNew" [(ngModel)]="inputIdUpdate" [value]="new" (click)="selected(new.idcontentnew);" /> <label for="id">Select notice</label>
</div>
<div class="form-group">
<input type="text" id="inputTitlenew.idcontentnew" name="inputTitlenew.idcontentnew" [(ngModel)]="new.title" />
</div>
<div class="form-group">
<input type="text" id="inputTextnew.idcontentnew" name="inputTextnew.idcontentnew" [(ngModel)]="new.text" />
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 col-xl-12 col-sm-12">
<button type="button" class="btn btn-outline-dark" (click)="save(inputIdNew, inputIdUpdate);">Save</button>
</div>
</div>
now you can get your userItem here just as before
save(id: number, userItem: NewsModel)
this.newRegistry.idcontentnew = id;
this.newRegistry.text = 'aaaaa';// should contain the text model value in base to the selected radio button
this.newRegistry.title = 'bbbbbb'; // should contain the title model value in base to the selected radio button
this.homeService.save(this.newRegistry)
.subscribe(
data => this.route.navigate(['/home']),
error => this.loginService.closeLogin()
);
good idea, how I did not realize before, working ok, thanksss
– Eladerezador
23 hours ago
add a comment |
You can change your html like this.
you can set full object as input value by changing
<input type="radio" id="inputIdNewnew.idcontentnew" name="inputIdNew" [(ngModel)]="inputIdUpdate" [value]="new.idcontentnew" (click)="selected(new.idcontentnew);" /> <label for="id">Select notice</label>
to
<input type="radio" id="inputIdNewnew.idcontentnew" name="inputIdNew" [(ngModel)]="inputIdUpdate" [value]="new" (click)="selected(new.idcontentnew);" /> <label for="id">Select notice</label>
Now change the button function reference here.
<button type="button" class="btn btn-outline-dark" (click)="save(inputIdNew, inputIdUpdate);">Save</button>
full code
<div class="row" *ngFor="let new of data">
<div class="col-md-12 col-xl-12 col-sm-12" [ngClass]="'divSelected': new.idcontentnew == idSelected">
<div class="form-group">
<input type="radio" id="inputIdNewnew.idcontentnew" name="inputIdNew" [(ngModel)]="inputIdUpdate" [value]="new" (click)="selected(new.idcontentnew);" /> <label for="id">Select notice</label>
</div>
<div class="form-group">
<input type="text" id="inputTitlenew.idcontentnew" name="inputTitlenew.idcontentnew" [(ngModel)]="new.title" />
</div>
<div class="form-group">
<input type="text" id="inputTextnew.idcontentnew" name="inputTextnew.idcontentnew" [(ngModel)]="new.text" />
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 col-xl-12 col-sm-12">
<button type="button" class="btn btn-outline-dark" (click)="save(inputIdNew, inputIdUpdate);">Save</button>
</div>
</div>
now you can get your userItem here just as before
save(id: number, userItem: NewsModel)
this.newRegistry.idcontentnew = id;
this.newRegistry.text = 'aaaaa';// should contain the text model value in base to the selected radio button
this.newRegistry.title = 'bbbbbb'; // should contain the title model value in base to the selected radio button
this.homeService.save(this.newRegistry)
.subscribe(
data => this.route.navigate(['/home']),
error => this.loginService.closeLogin()
);
You can change your html like this.
you can set full object as input value by changing
<input type="radio" id="inputIdNewnew.idcontentnew" name="inputIdNew" [(ngModel)]="inputIdUpdate" [value]="new.idcontentnew" (click)="selected(new.idcontentnew);" /> <label for="id">Select notice</label>
to
<input type="radio" id="inputIdNewnew.idcontentnew" name="inputIdNew" [(ngModel)]="inputIdUpdate" [value]="new" (click)="selected(new.idcontentnew);" /> <label for="id">Select notice</label>
Now change the button function reference here.
<button type="button" class="btn btn-outline-dark" (click)="save(inputIdNew, inputIdUpdate);">Save</button>
full code
<div class="row" *ngFor="let new of data">
<div class="col-md-12 col-xl-12 col-sm-12" [ngClass]="'divSelected': new.idcontentnew == idSelected">
<div class="form-group">
<input type="radio" id="inputIdNewnew.idcontentnew" name="inputIdNew" [(ngModel)]="inputIdUpdate" [value]="new" (click)="selected(new.idcontentnew);" /> <label for="id">Select notice</label>
</div>
<div class="form-group">
<input type="text" id="inputTitlenew.idcontentnew" name="inputTitlenew.idcontentnew" [(ngModel)]="new.title" />
</div>
<div class="form-group">
<input type="text" id="inputTextnew.idcontentnew" name="inputTextnew.idcontentnew" [(ngModel)]="new.text" />
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 col-xl-12 col-sm-12">
<button type="button" class="btn btn-outline-dark" (click)="save(inputIdNew, inputIdUpdate);">Save</button>
</div>
</div>
now you can get your userItem here just as before
save(id: number, userItem: NewsModel)
this.newRegistry.idcontentnew = id;
this.newRegistry.text = 'aaaaa';// should contain the text model value in base to the selected radio button
this.newRegistry.title = 'bbbbbb'; // should contain the title model value in base to the selected radio button
this.homeService.save(this.newRegistry)
.subscribe(
data => this.route.navigate(['/home']),
error => this.loginService.closeLogin()
);
answered yesterday
Naieem Mahmud SuptoNaieem Mahmud Supto
1365
1365
good idea, how I did not realize before, working ok, thanksss
– Eladerezador
23 hours ago
add a comment |
good idea, how I did not realize before, working ok, thanksss
– Eladerezador
23 hours ago
good idea, how I did not realize before, working ok, thanksss
– Eladerezador
23 hours ago
good idea, how I did not realize before, working ok, thanksss
– Eladerezador
23 hours ago
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55023262%2fangular-7-save-register-by-id-using-radio-button%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
It should just be
this.newRegistry.text = userItem.text
from what I understand. But maybe you should read more about ReactiveForms.– Bernard Pagoaga
yesterday