I am wondering if all asynchronous events and callbacks can be traced back to a specific source component by wrapping all component logic (including logic of non-component directives inside component) in a zone, then only that source component needs…
While attempting to embed a Google Maps (API v3) widget inside an Angular2 app, I discovered that there's a click/drag error that disturbs me.
I want to know if there's a good way I can embed the Google Map component it is isolated from Angular.…
I am testing angular 16 signals and per my understanding, when I disable zone.js and call signal.update() the view should be updated with new value. It is not. Please help me to understand…
I'm running cdr.detectChanges() in some nested child (Child1) that has parent and also another nested child component (Child2).
Why if I will run trigger detectChanges method in Child1 component - only ngDoCheck is invoked in Child2 component?…
This test passes but results in a problem:
it('should retrieve data on getDownloadProgress() call', (done: DoneFn) => {
let response = {
'process': {},
'success': 'success',
} as IPollResponse;
…
I'm using Angular Universal with Zone.JS and until now thought that it was waiting for my API calls to resolve before delivering the response. As I understand it, Zone.JS patches various libraries in order to know when the application has settled…
I'm currently working on very lightweight Angular Elements with Ivy (v10.1.2).
When I don't import zone.js in my polyfills.ts and "disable" it in my main.ts as follows:
platformBrowserDynamic()
.bootstrapModule(AppModule, { ngZone: 'noop' })
…
Issue
We use a Angular cell component which contains a button. I noticed that sometimes (approximately 1 out of 10 times) the button event is handled outside of the zone which leads to issues.
What I've found out so far
agInit sometimes runs outside…
I want to do some asynchronous work by using zone.js. Mostly it will be zone.js microTask. When I got the desired output, I wish to cancel all the running and scheduled tasks. I am a bit confused about where to cancel the tasks.
Here my code…
I need to write a function that uses native async/await in Angular.
Example:
var function = () => {
var _self = {};
_self.test = async () => {
return await someAsyncFunc();
}
return _self;
}
When I do ng build --prod the…
I'm facing a strange behavior using Angular Elements to build a widget. I have created a widget to pop-up a simple feedback form on another site, build with Angular too, and work pretty well in development, but when I build the application for…
I'm using p-fileUpload in Angular 6.0.0 app, for uploading the image files (In this case multiple images files). It has an event handler (uploadHandler) for the uploaded files.
I have an Angular 2 app https://github.com/DanWahlin/Angular-JumpStart. I tried to patch Element.prototype.addEventListener for some of my use case.
Here is the patch:
var origLis =…
I'm monitoring the size of an element in angular using ResizeObserver
observer = new window.ResizeObserver(entries => {
...
someComponent.width = width;
});
observer.observe(target);
stackblitz
When you run the code in safary, firefox…