Answer the question
In order to leave comments, you need to log in
How to load a model into a reactive form?
I have a form like this in the constructor
this.lineForm = fb.group({
campaignType: [null, Validators.required],
name: [null],
state: [null, Validators.required],
startDate: [this.getDate(this.startDate), Validators.required],
endDate: [this.getDate(this.endDate), Validators.required],
impression: [null, Validators.required],
mediaCost: [null, Validators.required],
partyInventory: ['active', Validators.required],
perImpression: ['active', Validators.required],
cpm: [null],
});
onOpenModalEdit(item)
{
// item - это и есть модель с данными
}
Answer the question
In order to leave comments, you need to log in
Well, it was made using css, namely through transform: matrix3d ( use )
+ Scroll is hung on the "cursor movement" event. Those. the page is conditionally divided (horizontally) into 2 parts and when the cursor moves away from the center of the image, the images scroll at a higher speed in a certain direction
Is it a script? It seems to me that everything is implemented through 3D transformations using CSS
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question