If there is an uncaught error from a component (constructor or ngOnInit) during routing the navigation won't work anymore afterwards.
This happens even if there is an global ErrorHandler and an ErrorHandler for the RouterModule, added an…
It is not advised to use Bootstrap directly with React because Bootstrap's JavaScript may alter the DOM directly, interfering with React's Virtual DOM system. Can one say the same about Angular (2+)?
I'm having major trouble trying to perform some logic inside a (click) event callback function in Angular 2 without triggering change detection.
Why I don't want to trigger change detection
The callback function performs a simple animated scroll to…
Can zone-free window methods (setTimeout, etc) be accessed somehow with loaded Zone.js ? Does Zone.js expose the original unpatched methods?
The example of possible use case is Angular 2 app that has some problems with Angular 2 Material data…
So this is the weirdest thing I've had happen as this project was working perfectly fine yesterday, in fact i even had 'ng serve' still running as i finished my work the day before and everything was fine.
Come today, with no changes, I can no…
I upgraded from Angular 9.17 to 9.19 and now ng build fails with the following error complaining about a variable declaration in both @types/node and zone.js:
ERROR in node_modules/@types/node/ts3.5/globals.global.d.ts:1:13 - error TS2403:…
Backstory: I needed to update my app from Angular 5.2.9 to 6 yesterday, and so I thought "why not go to 7 while I'm doing this." So of course that took all day, and required lots of changes to lots of files (mostly because of Rxjs), but in any case,…
I've generated a component in my components folder using the angular CLI (v6.1.4) by running ng g c components/foo and have then run ng test. The test for the new component fails with the following errors:
Zone is needed for the async() test helper…
Update Aug. 28: The exact same package configuration below but with zone.js 0.8.16 instead produces no errors. Any idea why?
Edit: I've been trying to find out just where the problem is coming from. If this is an endless loop, where exactly does it…
In my Angular 2 app I have a resolve guard which tries a xhr and throws a custom error if it fails:
return this.service.getProduct (id)
.catch (err => Observable.throw(new MyError(err.message, route, 500, err)));
MyError is just an extension of…
I have an Ionic 2 beta 7 app (also happens in Beta 6) that uses the Google Maps JavaScript API.
If I click down on the map, drag it and "throw" the map before releasing the click, it causes this error to occur on the next attempt at dragging the…
I have a strange problem with signalr and angular. We recently upgraded signalr to use the @microsoft/signalr package instead of the @aspnet/signalr one and we noticed that the callback called by signalr are no longer run in the angular zone.
The…
In the following example, the
first expression {{ bar }} is never updated, but the
second expression {{ "" + bar }} is updated:
e.g.
two
1588950994873
Why is this the case?
import { Component } from "@angular/core";
@Component({
selector:…
I had a similar issue with mat-dialog, I was not able to open/close it. What is interesting is that it works for about 20 minutes after I refresh the component. But after that, it stops working.
I read this issue…
We try to make server side render build for Angular 5 project, then it shows this error. Zone js is loaded on my polyfills.ts , What the problem how to fix it.
And i observe same Zone code in twice in mys server.js file, thanks
Error: Already loaded…