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
Arrow functions cannot be safely used in providers or services, because these types are intended to be invoked with the new operator, and expect to have their own value of this.
We should discourage (or outright disallow) people from doing this, because the breakages that it causes could lead to subtle and unpredictable bugs.
The text was updated successfully, but these errors were encountered:
Arrow functions cannot be safely used in providers or services, because these types are intended to be invoked with the
new
operator, and expect to have their own value ofthis
.We should discourage (or outright disallow) people from doing this, because the breakages that it causes could lead to subtle and unpredictable bugs.
The text was updated successfully, but these errors were encountered: