I updated my version of angular from 2 to 4 and now I am getting this exception when executing a service:
ERROR TypeError: Cannot read property 'ngDebugContext' of undefined
at getDebugContext (core.es5.js:994)
at isViewDebugError…
I'm trying to setup a Zone in my NodeJs api using Express. I've got the following require...
const Zone = require('zone.js/dist/zone-node.js');
and the following middleware function...
function setupAuthZone(req, res, next) {
return…
I want to render a visual countdown timer. I'm using this component, https://github.com/crisbeto/angular-svg-round-progressbar, which relies on SimpleChange to deliver changes.current.previousValue & changes.current.currentValue.
Here is the…
Angular 2 application where most of the State of the application lives in @Injectable services that expose the state via an Observable. At some point the application is dropping out of the Angular Zone, which causes change detection to not work. …
I'm trying to write a simple demo using angular/zone.js in node, but for some reason neither the beforeTask or afterTask are being called.
Here is the code I'm running:
require('zone.js');
function foo () {
Zone.current.fork({
name:…
Im trying to load my angular build from a typescript package using (dist/index.html). Its loading fine, but when im going back and again trying to load the same, its showing the below errors.
VM5485:1 Uncaught Error: Zone already loaded.
at new…
I have a problem in an angular 7 application.
When I have a promise with a finally block, Errors are not thrown! They get swallowed without noticing, When I remove the finally-block it behaves like expected.
Here are some examples:
With vanillaJS…
I'm getting SCRIPT5022: SecurityError in zone.js (192,25) intermittently when I load an Angular component in an iframe on IE11.
Other than that the frame is working and I don't notice anything broken.
This is the code around the error:
…
I have a rather large angular.js 1.6 app that I would like to migrate to Angular, but using ngUpgrade causes way too many $digests to be triggered (i.e. every time Zone.onMicrotaskEmpty is fired). Unfortunately the app I am migrating is already not…
I have started recently the migration of an AngularJS application to Angular 4 using the upgrade module.
One of my AngularJS directives uses a third party library (ngFlow) to upload files using XMLHttpRequest.send(). When running in hybrid mode,…
I'm creating an application where the user can identify himself via his Google account. Behind the scenes, I'm using gapi to handle the login. On the other hand, there is an angular service called "user" that has an Observable that is broadcasting…
I am rewriting app based on angular 1 to angular 2. In my app there is websockets. Each time when app gets message from websocket it runs zone.runTask (because websocket.onmessage is async function) and in the end it update $digest circle from…
Firebase uses a lot of internal asynchronous calls that trigger change detection because of Angular/Zone monkey-patching websockets and setInterval etc. Even when I'm not interacting with my app, I see a cascade of change detection happening all the…
I was connecting my app with a REST API in which some operations return response redirects. So I got the error: "Redirects form [url] has been blocked by CORS policy. Request requires preflight, which is disallowed to follow cross-origin…
I need some help concerning an externally changed DOM within an Angular2 RC1 web app. The scenario is simple: I do have a component with an according template that contains an empty div with an ID like this
The…