Category "angular12"

Async tests fail due to timeout

We are using jest 27 for our project in Angular 12 for running our unit tests. Locally, these tests run correctly but runnig them in a cloud agent pipe they bre

Can I add a function with the (click) event to my span tags that I added with the replace method?

https://i.stack.imgur.com/B5doW.png I have sentences like this, and as you can see, if the word I'm looking for is in that sentence, I put it in span tags. .rep

Server side rendering not working with modules lazy loading angular 12 on live server

On the localhost module, lazy loading is working fine, showing meta tags and HTML content in <app-root><app-root/> in the view page source, but it i

Agular "partial" vs "full" compilation mode?

Why the library compiled in the "partial" compilation mode builds so slowly inside of the consumer application, compared to the "full" compilation mode?

Communicate between base window and popup window Angular 12

I need to trigger some event from the base window to a popup window when a user tries to open the same popup window again, which is a gear icon dropdown. What a

TypeError: Cannot read properties of undefined (reading 'match')

I have upgraded my Angular application from 12 to 13 version. And I started getting this error during unit test run. Chrome Headless 94.0.4606.61 (Windows 10) A

Angular 12 setting up Unit test with JEST when running no tests found

Edit: My Jest was not setup on my Angular project properly. so if you are experience this then your Jest was not setup properly, if anyone has a good guide on s

Fucntion not working inside razorpay ondismiss callback in Angular 12

I have a function inside ondissmiss callback options.modal.ondismiss = () => { console.log("its working"); this.detectChanges(); this.isPaying = false

Angular 12 breaks absolute paths for templateUrl and styleUrls

I am using Angular 13, upgraded from Angular 11 but after upgrading to Angular 12, the absolute paths stopped working for templateUrl and styleUrls. When I was