Issue
In my angular project I have this kind of code:
this.swUpdate.available.subscribe(() => {
...
});
It work fine but gives me the warning about activated
being deprecated.
What should I do to fix this warning?
Solution
You must change activated
to activateUpdate()
and treat it as Promise
:
this.swUpdate.activateUpdate().then(() => {
...
});
Answered By - MahdiJoon
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.