Category "angular"

component styleUrls not working in production build Angular

I recently updated one of my projects to Angular 13 from 10, during development everything worked just fine. Then when I generated a production build to notice

Angular: how to set up Content-Security-Policy & Trusted Types?

Having read the Angular security guidelines, I would like to: configure the content security policy enable the trusted types enforcement Here is how I changed m

Cordova Android: Can I get any information on underlying Java/HTTP exceptions

I have an Ionic/Cordova Android application that is deployed on various different client internal networks, where the application connects to a http service run

How to disable cursor when hovering over angular component?

I currently have a horizontal mat-stepper component which can be found below; The user is currently able to go back to the previous step by clicking the "Back"

Dynamic Server Side Rendering (SSR) and Client Side Rendering (CSR) in angular depending who requested

Is It posible to create a Node.js service that renders the angular aplication depending in if is a client or a server? Right now I am only using SSR, I followed

Angular Routing: create different language path route to the same component form navbar component

I am using ngx-translate to translate my components. I am able to change website language if the user clicks on language link inside the same component. In an

Path variable to use in data in Angular

i have a problem with tab title setting. Before is was always the same title which is set in index.html Now i would like to have another title in some component

Compare two controls value validation

About I am trying to compare the value of password and confirm password and if found mismatch then message to be shown. Due to some reasons it shows nothing. Am

NGRX router-store: selectCurrentRoute selector undefined

I'm trying to use the selectCurrentRoute selector, but I only get undefined. export interface AppState { router: RouterReducerState<RouterStateUrl> } e

Configure Angular Routes with Auth0s AuthGuard

I would like to configure my lazy loaded routes nested, which are only available if the users is logged in. Authentication works with Auth0s and it's correspond

Keep primeng multiselect open on scroll

I have a primeNG multiselect (p-multiselect) as part of a component library, which we're adding into a report with many other multiselects to create filters. Si

how to display multi dimension array values on screen

// aap.component.html <ul *ngFor="let items of exceltoJson" > <li> {{ items }} </li> </ul> <input type="file" (change)="onFi

Angular Web Component routing reroutes to last component routed when we get back to the web component

We have built a web component with angular elements and consumed in a parent angular application. But the problem seems to be with the web component routing. It

using Moment with Angular library 13 causes an error

When i use the moment.js (latest version) in an angular library, i am facing the following problem: vendor.js:sourcemap:106713 ERROR TypeError: (moment__WEBPACK

RXJS data manipulation

I am trying to find the reactive way of manipulating data in an array of objects. In the array below, I want to determine the low score in groups of four and a

Rxjs only execute last item in queue with concatMap

I am using NGRX with RXJS. In the effects layer, I am using a concatMap to queue my requests, however, once the latest request is complete, I want to execute th

mat-datepicker change date format not working

I am using the providers in my module to change the format of the datepicker in FiltriRecuperoComponent see code below export const MY_FORMATS = { parse: {

Incorrect functioning of routes in Angular

When trying to navigate from 'users' to 'users/:id' like this this.router.navigate([`/users/${userId}`]); or this.router.navigate(['/users', userId]); it stay

how to grab the payload inside of withlatestfrom with ngrx?

hi i have the following code where the selector requires an index to grab a value from the store, I use withLatestFrom to grab this value from the store only th

Installing dependency produces: ERESOLVE unable to resolve dependency tree

When I try to install a dependency I get the following error. How can I fix this? npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm