M
M
mletov2018-04-26 15:53:13
JavaScript
mletov, 2018-04-26 15:53:13

Why is the model not updated in IE if the console is not open?

Please, tell me:
I am making an application based on the example https://metanit.com/sharp/aspnetcore/2.4.php
Chrome, Mozilla - norms.
But in IE 11, the model is not updated after saving or deleting.
And if the browser console is open, then everything is fine.
Googled. There are similar problems. As I understand it, you need to hang a timeout, but here's where.

...
    save() {
       this.dataService.createProduct(this.product).subscribe(data => this.router.navigateByUrl("/"));
    }
...
    createProduct(product: Product) {
        return this.http.post(this.url, product); 
    }
...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2018-04-26
@mletov

As far as I remember, I had a similar problem. IE cached requests (more precisely, server responses), i.e. when the console was closed, the response was taken from the cache. Try adding a random parameter to the url to make it unique every time.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question