Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71031

How do I get each values from a object on a formBuilder?

$
0
0

@asha4640 wrote:

In my ts file , I have this loginForm object which binds username and password values .I need to get the each values of username and password values in function post()

constructor(public formBuilder: FormBuilder) {

this.loginForm = formBuilder.group({
  username: [''],
  password: ['']

});
}
post(){
console.log(this.loginForm.value); // here it gives–> Object password: "test"username: "test"proto: Object I need to get username and password values here seperately
}

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71031

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>