Category "angular"

Hosting Angular 6 application to firebase

I am trying to hosting Angular 6 application in firebase. Aftter making a project in firebase , i followed the every step in firebase hosting documentation. h

Angular: HttpClientModule import error (could not be resolved to an NgModule class)

I was trying to build a simple app with crud on fake json server but i can't import HttpClientModule Here is error message from VS Code : ERROR in node_modul

angular 2 (click) passing iteration variable and [class.selected] passing function

The following is taken from ng-book 2 @Component({ selector: 'products-list', directives: [ProductRow], inputs: ['productList'], outputs: ['onProduct

How to bind autocomplete data from Ngx-bootstrap typeahead to input fields

I have the following typeahead that returns data <input [(ngModel)]="model" [class.is-invalid]="searchFailed" [inputFormatter]="inputFormatBandListValue"

The pipe ' ' could not be found angular2 custom pipe

I can't seem to fix this error. I have a search bar and an ngFor. I am trying to filter the array using a custom pipe like this: import { Pipe, PipeTransform }

Angular TSLint - Cannot find builder "@angular-devkit/build-angular:tslint"

When I try to run command ng lint --fix cli throws this error: An unhandled exception occurred: Cannot find builder "@angular-devkit/build-angular:tslint". See

Rxjs - resubscribe to unsubscribed Observable

I'm using a Service to "ping" my server every 2.5s, returning the response time from my server. Therefore I am using observables. I am also using angular 2 an

Angular2 empty response handling

In my current application I can't seem to get a response from the observable when it's an empty array or when it takes too long for the server to reply. Here is

Angular TSLint - Cannot find builder "@angular-devkit/build-angular:tslint"

When I try to run command ng lint --fix cli throws this error: An unhandled exception occurred: Cannot find builder "@angular-devkit/build-angular:tslint". See

Set vertical scroll to a fixed height mat-table in Angular

I have set a height of 200px to the container of my mat-table. However, the table and its content does not respect the setted height. I want to add a vertical s

Ngx-translate not translating anything

I am in the process of internationalizing my current Angular 12 prototype application. Prototype means there is only the skeleton and a bunch of administrative

I get this error:Cannot find module '@angular-devkit/build-angular/package.json when I try run my app with ng serve from Linux

hello guys I have this next error when I try run my App from the terminal(linux), when I run this command: ng serve and I get this error in my terminal: A

animateChild() for nested Angular child animation not working

I would like to fire two animations at the same time on click. The animation triggers use the same state, one is placed on an outer parent div and the other is

How can I make dynamic url to external site in angular5?

When I'm trying to make link like this: <a [href]="getUrl()">click me</a> getUrl() { return this.domSanitizer.bypassSecurityTrustUrl

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

async await in switch case statement does not work

can we wait for the resolution of a promise within switch case statement, using the keyword await? in my angular component I have the following code which crash

Angular build generates index.html with <style> tag

My build process generates index.html with tag <style>, but because of I use CSP and i dont want to insert into my code style-src 'unsafe-inline' it doese

How to unit test a component that depends on parameters from ActivatedRoute?

I am unit testing a component that is used to edit an object. The object has an unique id that is used in order to grab the specific object from an array of obj

Angular-router not works at vercel

I'm working on the serverless web MEAN and I'm trying to publish on vercel. When I'm trying to access some route through the navigation menu, the router is work

Ngxs - How do I chain actions?

I want to do something like this for my registration. When clicking the register button, this will be executed: this.store.dispatch(new Register(user)) .s