Category "angular"

Angular/Karma unit test error "1 timer(s) still in the queue"

This is hardly first encounter I've had with "1 timer(s) still in the queue", but usually I find some way to use tick() or detectChanges(), etc., to get out of

Unable to update Angular from 10 to 11 due to dependency errors

I am following this site and trying to update my project to 11.0 through the following command. npx @angular/cli@11 update @angular/core@11 @angular/cli@11 Eve

Angular SPA with Custom --base-href and Nginx Routing

We have an angular SPA application that we need to change the base path from www.site.com to www.site.com/app We added --base-href=/app to our ng build comm

ngx-infinite-scroll scrolled event won't stop firing

I implemented infinite scroll with ngx-infinite-scroll. When the user reaches the bottom of the scrollable element (with a fixed height), the event 'scrolled' w

Navigate relative with Angular 2 Router (Version 3)

How to navigate relative from /questions/123/step1 to /questions/123/step2 within a component using Router without string concatenation and specifying /question

(Angular) Watchpack Error (watcher): Error: ENOSPC: System limit for number of file watchers reached

I'm trying to make a project in angular but when I try to compile it shows me these errors over and over till my IDE closes. Watchpack Error (watcher): Error: E

Ng serve throwing @angular/core/core has no exported member 'eeFactoryDef'

Im getting like 50 errors that all say that angular/core/core has no exported member 'eeFactoryDef'. They come from different node_modules, for example angular

Angular2 : render a component without its wrapping tag

I am struggling to find a way to do this. In a parent component, the template describes a table and its thead element, but delegates rendering the tbody to anot

Angular 2 formatting currency BRL format

I'm trying to use pipe to format the price of an item in PT-BR currency format. Here what i'm trying to do: <div class="desc">{{statement.price |

Why powershell does not run Angular commands?

I have started to learn Angular but I note that powershell in Windows gives me an error whenever I make an angular command like: ng new new-app or ng serve

Angular EventEmitter in merge()

I made a component that shows a list of data-items which can be changed either by pageSelection, sortOrder or filterChanges. This is the code: import { EventEmi

Using an Angular 2 http.post without subscribing? Or am I thinking of it wrong?

Is there a way to just tell the server to update data without subscribing? Skipping a return statement and a subscription seems to render the http call inert.

How to implement routed tabs with angular material, within a child route?

I want to use Angular Material tabs https://material.angular.io/components/tabs with a router navigation in the tabs. I tried to use <nav mat-tab-nav-bar>

Angular 7: Sending post request gives error 405 (Method not allowed)

I have the CORS extension on Chrome and the GET request works fine but the POST request does not. I get the error "method not allowed" but since I have the CORS

html2Canvas/jsPDF only converts the data in the viewport to pdf?

I am trying to use the html2Canvas to convert html content to pdf. I have one consent form which is long and we have to scroll like below. I have written be

How to cancel .Net Core Web API request using Angular?

I have the following two applications Angular 6/7 App .Net Core Web API I am making GET request to API using Angular's HttpClient as shown below this.subscrip

How to pass a parameter to routerLink that is somewhere inside the URL?

I know I can pass a parameter to routerLink for routes such as /user/:id by writing [routerLink]="['/user', user.id]" but what about routes such as this o

Angular/RxJS When should I unsubscribe from `Subscription`

When should I store the Subscription instances and invoke unsubscribe() during the ngOnDestroy life cycle and when can I simply ignore them? Saving all subscrip

Trying to install Angular 2 Material from npm - unrecognized token in source text

I try the following command from PowerShell (as Administrator) npm install @angular2-material and get the error: Unrecognized token in source text. At line:

nz-select miss it's content location on none main scroll

when you are using nz-select in regular way you see no problem , But when you want to use it in scrollable div or content that is not in main page scroll you se