Building reactive forms with RxFormMapper

What’s RxFormMapper?

When to use RxFormMapper?

export class User {
name: string;
surname: string;
age: number;
}
new FormGroup(
name: new FormControl(user.name),
surname: new FormControl(user.surname),
age: new FormControl(user.age),
);
export class User {	@FormControl()
name: string;
@FormControl()
surname: string;
@FormControl()
age: number;
}

Why use RxFormMapper?

Let’s start writing code

npm i rx-form-mapper --save
npm i reflect-metadata --save

Conclusion

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store