New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deleting element in ngFor not given correct data after that to display #21068
Comments
@Alkasih ... link to SO doesn't work ... also a simple demo on Plunker or Stackblitz is expected ... |
This is the link. I dont know how to setup plunker work with angular., but it should be a simple thing that can be built anywhere. |
|
@Alkasih ... as @Ploppy3 said ... create a simple repro demo on https://stackblitz.com ... it would be the easiest way for you. Remember that the first condition for creating an issue here is to have a working reproduction of the problem if at least possible. |
This work good with angular 5.0.0 https://stackblitz.com/edit/angular-stpwi2?file=app%2Fapp.component.ts Please this doesn't work with angular 5.0.3 In angular 5.0.3, if I delete one image after adding it, the background image doesn't set up corretly to its container, means that the background image set to another container. |
Please see the update version, now it doesnt work with this multiple wrapper: https://stackblitz.com/edit/angular-stpwi2?file=app%2Fapp.component.ts can you inspect what is the problem? |
@Alkasih ... hmm, I converted your Stackblitz demo for Angular 4.4.6 but still no problem ... https://stackblitz.com/edit/angular-ktve3j?file=app%2Fapp.component.ts |
@mlc-mlapis please see my update version. It is the original view of mine https://stackblitz.com/edit/angular-stpwi2?file=app%2Fapp.component.ts |
@Alkasih ... ah, I am a bit confused ... so you know what is exactly the problem? |
The problem appears when I have multidimensional array to loop it in the view? Can you help, please? |
https://stackblitz.com/edit/angular-stpwi2?file=app%2Fapp.component.ts My original code doesn't look like that, I just make it similar. If you have something to ask, you can ask. Not just giving thumbs down and thinking how to fix it actually. I am not focusing on this actually. But I want to see if it can be fixed. |
@Alkasih Giving thumbs down to the people trying to help you is not a good idea either. Can you please explain the bug? All your stackblitz projects seem to work properly. |
Stackblitz link worked as expected for me too...Didn’t clearly understand what’s the issue :-) |
@Alkasih ... the problem is that you don't use a correct syntax for It should be:
where So you remove one element from |
Dear @mlc-mlapis, First of all, thank you for the analyze and that good respond. But, I dont think it is really about I am sorry if I want to know more about this. I am still learning this framework actually. |
@Alkasih ... so here is a demo how it works with |
Hello, we reviewed this issue and determined that it doesn't fall into the bug report or feature request category. This issue tracker is not suitable for support requests, please repost your issue on StackOverflow using tag If you are wondering why we don't resolve support issues via the issue tracker, please check out this explanation. |
I am still not sure what the aim of |
@Alkasih ... you'r welcome ... I'd like to help if it has a sense ... The If there is not that key ... for example when you don't use As the next it is possible to use relative index in a processed array. But because it has the relative character ... it means that this key always starts at 0 and ends with the number (array.length - 1) and ... it is always true even when you delete some node / element from inside / beginning / end ... Angular So ... the information supplied by |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
I'm submitting a...
Current behavior
I am using a background image for each container with loop of object. And when
deleting one element/object from array in ngFor, it doesn't give the correct background image after that to display, while the object in array and their value are still aranged correctly.
Expected behavior
Minimal reproduction of the problem with instructions
https://stackoverflow.com/questions/47847409/delete-file-value-from-loop-array-will-mess-up-the-container-background-angula
I have opened a question a day ago to SO, but seems like no one can fix it.
What is the motivation / use case for changing the behavior?
Environment
The text was updated successfully, but these errors were encountered: