Category "angular"

Angular - Maximum call stack size exceeded

I'm getting an error when I try and do an ng build on an Angular library project. Most likely something is eventually creating/calling itself, but it only fails

Why is the google maps places search not placing a marker when a location is found in my Angular project?

I am using the @angular/google-maps package in my Angular project to display a map with a search box for searching locations. When I search for a location, 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?

MatTabGroup is not reliably showing pagination buttons

I am having an issue with the Angular Material Tabs component. I am trying to use the MatTabGroup with a handful of tabs in it. The problem is, when my componen

Tailwindcss 3 with Angular 13 - new styles don't show after ctrl+s livereaload

I am using Tailwindcss 3 with Angular 13. When I apply new class (for example bg-cyan-500) the style is not added into final .css file and the change is not vis

Infinite loop when calling detectChanges() inside ngAfterViewChecked?

I recently reviewed some code where detectChanges() is called from ngAfterViewChecked. How does that not cause an infinite loop? Shouldn't it trigger another ch

Injector is returning null using injector.get()

I'm facing an issue with the injector.get(ViewContainerRef) to get the instance of ViewContainerRef. It is returning null/undefined when try to get the instance

Changing starting position of mat-slider

I am working on mat-slider. I want to place thumb in middle and start sliding left and right. My code is as follows https://stackblitz.com/edit/angular-9unenq-u

Angular 8 : What is the best way to store some temp data to transfer between the components

I need to store some temporary data to communicate between the component. (say the data is JSON). We have a lot of ways like LocalStorage, SessionStorage, Servi

Angular application start with "ng serve" returning error

⠋ Generating browser application bundles (phase: setup)...Compiling @angular/core : es2015 as esm2015 Error: Error on worker #1: TypeError: compiler_1.cr

Selected Field Value visible in matToolTip but not in disabled divTable dropdown

I have the following code: table.component.html <div *ngFor="let person of persons; let i = index;" class="tbody"> <div class="row"> <

ngx-image-zoom set max-width and -height

ngx-image-zoom is a great product. After some testing we found out it will be necessary to set a max-width so a large image won't bump other content off the cli

Whenever I refresh page its path copy again and again angular routing issue

Whenever I go to my landing page and if I refresh it then it add one more path to the landing page any solution you can refer images for more information const

Call retries were exceeded exception while ng build

I am facing an exception while ng build (generating ES5 bundles for differential loading...) An unhandled exception occured: Call retires were exceeded Used

Function with RxJS and combineLatest sometimes works and sometimes doesn't

If you call this function multiple times with the values of the observables obs1 and obs2 being the same each time, the returned array is not always the same. g

What is React Native WebView alternative for Capacitor/Angular?

I need to transform WebView component from React Native to Capacitor/Ionic/Angular: <WebView source={{uri: customUri}} /> Is there some similar option

Why I can not print Angular page with styles?

There are styles in root component: .div { width: 400px; height: 200px; background: #000; } When I click button to print out this page I get preview w

Angular Material Table pagination not working, listing all rows even though the paginator is shown

I am trying to paginate an angular material table. The table at present is having dummy static data , in future once the backend api is ready it will be called

Angular Material Table filtering not refreshing

I have an Angular Material table... <div class="card"> <div class="card-header"> <b>{{ pageTitle }}</b> </div> <div

unable to load image file from server in angular

i am sending an image file named figure.png from flask api and it is working fine. i have checked it in postman. now here is the angular code -> chart-compon