Consider the following component tree structure in Angular2
A
B
D E
If D emits an event via click to B , angular2 will automatically start the change detection from root A. Is there a way to console.log that change detection out even if D…
In AngularJS 2, most zone-related examples and articles center on the zone object and functions like zone.fork and zone.run. For example, this article and this video focus on the zone object.
But the AngularJS 2 documentation presents a class named…
I've noticed a strange behavior of change detection in Angular. When Observable updated as in the example, change detection not triggered for some reason.
The key here is setTimeout called inside the callback, if you remove it, change detection will…
I'm triggering tick() and detectChanges() in the root component. In root component I have one child with onPush strategy, which logically means it shouldn't triger that child component if data has not changed.
Really small example about this…
Update:
I noticed that whenever we try to load a component/module it looks for window.ng.ɵcompilerFacade and expects it to be in v13 complaint format. But in between, if I load any web-component(built using elements) then it is replacing the…
I would like to find out, what is causing Change Detection cycles in my Angular (version 8 - I can't upgrade now) application. I would like to patch or intercept ZoneJS so I can see what has triggered the CD cycle.
(For example: that tick() has been…
I am trying to integrate Splidejs into a Grapesjs editor.
When mounting splides, I get the Uncaught Error: [splide] A track/list element is missing.
After debugging, I realise that Splide does not find the required track or list HTML Element for…
I'm not AG expert, I'm a sencha ExtJs expert. A super nice framework that has it all but is not that widespread and popular (due to various reasons) as AG is. So my company started to move pieces to Angular webcomponents using webpack to slowly make…
I'm trying to figure out how NgZone works. Does the following example make sense? I read that every xhr call triggers the change detection. So this seems meaningful to me. Is it?
persistData() {
this.ngZone.runOutsideAngular(() => {
…
The problem is about making work one custom XHR polyfill with the zoneJS dectector of angular.
The history:
I'm using Ionic 4, with angular. At this moment i have warning about uiwebview api deprecation, so i try to add the…
A component I'm using in Angular overwrites window.Promise when loaded and causes a Zone.js error. To fix this, I've moved import 'zone.js/dist/zone'; from polyfills.ts and adding it to main.ts so that it gets loaded after the component. This isn't…
I'm developing an application in angular 8 that uses jsPlumbToolkit to display and edit flowcharts. However i was experiencing performance issues, so i started digging and eventually realized that the change detection from zone.js was running at…
hlw,My base url is like this,
export const environment = {
production: false,
baseUrl:"'http://localhost:9002"
};
But its not hitting api and showing error loke this
zone-evergreen.js:2952 POST…
Im loading my angular application in another (A) application. So there is an option for user to come back to A and again go back to angular application.
With zonejs version 0.9.0 this will work fine, where as it will have an impact in my angular(4)…
I updated an Electron app that I sort of inherited recently from Angular 6 to Angular 8. Using zone.js 0.9.1 (update: root cause is bug in this version of zonejs - see my self-answer below)
Followed the upgrade guides, etc., got everything compiling…