angular 2 splice not reflecting on ui

I did something like this and it worked:

this.someJSONArray.splice(5, 1);
this.someJSONArray = JSON.parse(JSON.stringify(this.someJSONArray));

And it was being reflected on UI without any issues.

No comments:

Post a Comment