Category "angular"

What could cause a "TypeError: (0 , d.__decorate) is not a function" of an angular function inside a docker container?

I'm building a web application. The frontend is in angular and the backend in .Net Core. Currently, I'm doing the following, to build my final docker image: Bui

docker-compose up not running app correctly

I'm very new to docker. I have a mean stack app that and have configured the dockerfile for frontend and backend as you can see below. When I run docker-compose

How to set a custom error message to a form in angular

I have the below code in my component: if (form.controls['minRange'].hasError('min')) { form.controls['minRange'].setErrors({ min: true }); } I am

Deprecated compiler module in Angular 13

with Angular 13 I'm seeing deprecations for the usual compiler tools to instantiate an NgModule and Here is my usual go-to code for loading a module contain

How to add horizontal scroll with pinned columns AG Grid - Angular

I have multiple columns groups in my Ag-Grid Column Definitions and in them first one static pinned columns and remaining groups will be calculated based on giv

Angular 13 Property does not exist on type 'FormGroup'

Good evening everyone! I'm having a few issues with Angular lately. I'm new to Angular, so I'm encountering lots of errors here and there. Thankfully, I've got

How to get a certain post, its tags and comments from Wordpress REST API using switchMap and then combine the resulting values using JS?

I am working on an Angular app that needs to fetch a certain post with a given ID, its respective tag names and comments from Wordpress REST API. This applicati

Enlarging Swiper Navigation Buttons

I'm trying to enlarge the arrow of the Navigation of my swiper. I found that it is control by this CSS ".swiper-button-next::after", which is defined in swiper.

Enlarging Swiper Navigation Buttons

I'm trying to enlarge the arrow of the Navigation of my swiper. I found that it is control by this CSS ".swiper-button-next::after", which is defined in swiper.

How can I save the state of a component after navigating to another component in Angular 8

I have 2 components: HomeComponent and CityComponent. They do not have any relationship. After navigating back to the HomeComponent, the state of the CityCompon

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