angular Questions

8

Solved

Recently after updating my angular cli from 16 to 17 I have been facing performance issues and I had no idea what is SSR and prerendering so I left them enabled. But the root cause was ssr. After ...
Engorge asked 20/11, 2023 at 8:8

3

Solved

I am migrating an Angular workspace with Karma to an Nx workspace with Jest. I'm having a couple of issues, one of them being the use fakeAsync, which results in the following error: Expected to be...
Bitters asked 22/12, 2020 at 15:57

3

Solved

I would like to initialize some important values when my application starts (Angular v17). app.config.ts: export const appConfig: ApplicationConfig = { providers: [ ConfigService, ... { provid...
Wurster asked 9/4 at 12:12

2

I'm trying to catch http request's errors from an Angular interceptor and handle 401 as logout while retrying a 503 and 504 responses n times. This is my http interceptor: intercept(req: HttpRequ...
Centuple asked 18/4, 2019 at 15:16

9

Solved

I'm trying to remove the filter icon in ag-grid whilst keeping the filtering box Right now I'm trying to use pure css to hide the icon which in webpack just adds the aria-hidden="true" CSS I've t...
Chancellorship asked 29/1, 2018 at 21:14

3

I have a host app and few micro front end apps all are angular 15. I've used "@angular-architects/module-federation": "^15.0.3". Everything works fine, except I could not interc...

3

Solved

I'm upgrading/refactoring an Angular project (to Angular 8, Electron 6, Ionic 4) and we decided to switch from TSLint to ESLint. I setup some rules and they are running but I can't get a rid off t...
Kailey asked 5/9, 2019 at 8:3

2

I have a lot of Angular code where I assign a property at its definition like the following... public errors$ = this.store$.select(fromApp.getErrors); constructor(private store$: Store<MyStat...
Dayna asked 22/6, 2023 at 7:41

3

I want the time picker (https://ionicframework.com/docs/api/datetime) to rotate endless. If I select hours I start at 0 and end at 23. When I’m at 23 I have to scroll all the way up to get to 0. Wh...
Luxemburg asked 30/3, 2022 at 14:46

6

Solved

When first and following time user enters the page, placed button is not focused and highlighted by gray color. I tried to set autofocus: <button mat-raised-button color="primary" autofocus>...
Raymonraymond asked 1/2, 2019 at 7:14

2

Solved

for some security reasons I need to hide javascript frameworks version especially angular from wappalyzer but I have no idea!
Fullfledged asked 24/10, 2022 at 13:10

2

Solved

I am developing a mobile application based on Ionic + Angular + Cordova + Node js. the application visits a https server via window.XMLHttpRequest: module.exports = function request (method, ur...
Oviposit asked 9/6, 2017 at 14:9

3

I'm trying to put my pagination in the bottom-center of the page and using Angular Material mat-paginator component. This is the result right now: 1: 2: As you can see the mat-paginator now is go...
Tabbi asked 6/11, 2018 at 9:38

2

Solved

I am doing angular unit testing. Does TestBed.inject(service) create a new instance of the service? I was always under the assumption that TestBed.configureTestingModule() created the service and b...
Enenstein asked 3/6, 2021 at 4:40

3

I'm trying to configure Microsoft Clarity to work on localhost in my Angular app. When I created the new project on the Microsoft Clarity portal, I've set the URL to localhost (I've also tried with...
Turnedon asked 6/2, 2022 at 10:22

3

In every component I have to import this CommonModule to use directives like NgIf and so on. I want a way of injecting this module in all my modules. @Component({ selector: 'app-register', stand...

6

I'm facing this error when building a project (Angular 8). How can we fix this error? Error: You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer.initialize({ 'lib/mappings.w...
Granicus asked 19/7, 2023 at 9:58

2

Solved

I am trying to make a form in my angular app, but when i want to implement ngModel on my form : <form (ngSubmit)="onSignUp()" #signupForm="ngForm"> <h1>Connexion&l...
Stearoptene asked 3/4 at 11:26

4

I am currently working with angular cli project. I see the spec file generated for every component, services and I want to remove all this spec files from this existing project.
Fregger asked 28/3, 2019 at 13:39

3

Solved

I updated from Angular 7 to Angular 14 after removing all the errors in my project this is the only error that is stopping me from compiling successfully. I am getting this error on ng serve: /sr...
Solipsism asked 22/7, 2022 at 10:14

5

Solved

I am trying to develop an app using Angular 4. But I have received an error message while using @Input('inputProducts') products: Product[]; The Error is [tslint] In the class "ProductListC...
Benzo asked 4/11, 2017 at 6:12

2

Solved

I am new to Jasmine with Angular 2, I am frequently working with the TestBed object when writting a Testcase and getting the error:Please call "TestBed.compileComponents" before your test. How do...
Harrietteharrigan asked 6/10, 2016 at 6:10

5

I am a beginner in Angular and tried to implement global error handling in the application for this purpose I create appErrorHandler class and implement ErrorHandler and I inject Toast Service on t...
Oversold asked 9/1, 2021 at 16:46

7

I want inject ParentCompoent to ChildComponent, But have a error is: Error: NG0200: Circular dependency in DI detected for ParentComponent parent Component: @Component({ selector: 'cy-parent', te...
Janellajanelle asked 10/12, 2020 at 17:33

5

I've been looking for a definitive answer to this question for a long time. Is there a reliable and recommended alternative strategy to do this yet? Incorrect answers to this question include: ...
Bedcover asked 5/1, 2019 at 19:12

© 2022 - 2024 — McMap. All rights reserved.