You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a big problem in my project. Is an inexplicable case.
I used mat-slide-toggle that works good, but when I select page 2, not is good.
So I demonstrate my problem like in image:
In this image1, page 1, you can see that g2 and g3 are checked.
In this image2, page2, you can see that g7 and g1109 are checked.
In this image 3 that are all product , you can see that only 2 product are checked, only g2 and g3.
If I checked and product g4 in image 1, automatic in image 2 checked and product g8. Please, what is the problem in my code?
on switch toggle, data changes, when the data is a part of the component
where the datatable is present.
To avoid this,
keep the data in a service.
inject the service in the component where datatable is defined.
use same data as input to the datatable created
this will ensure that, on switching views, data is not affected, as the
data will no more be a part of the component.
I have a big problem in my project. Is an inexplicable case.
I used
mat-slide-toggle
that works good, but when I select page 2, not is good.So I demonstrate my problem like in image:
In this image1, page 1, you can see that g2 and g3 are checked.
In this image2, page2, you can see that g7 and g1109 are checked.
In this image 3 that are all product , you can see that only 2 product are checked, only g2 and g3.
If I checked and product g4 in image 1, automatic in image 2 checked and product g8. Please, what is the problem in my code?
My html code:
The text was updated successfully, but these errors were encountered: