Category "angular"

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

Must use import to load ES Module while updating angular

I ran into this problem while trying to upgrading from angular 6 to 8, whenever i try to ng serve or ng build i get the following error: its been so fustrating,

Angular - Remove URL parameters on page refresh

I am adding a parameter to URL when clicking on a 'EDIT' button public editCustomFields() { this.router.navigate(['.'], { relativeTo: this.route

Angular8 SSR, First Time Input Latency Slow

I try to build an Angular App with the best performance possible. This App is very simple: One Header (with two links), one Footer, the homepage and the about

Select all of current page per page for Angular Material table

Is it possible to select all for each page of an angular material table. I have it set where the first page can select all of the current items displayed which

checkbox for select all checkboxes in angular primeng table

When I click on the checkbox in the table header. Then all the checkboxes in the table should be checked. Currently, I'm using angular 12 and primeNG table. <

Is there any way to load third party libraries like pdfmake using CDN in Angular 8 application?

I am using pdfmake library in my angular 8 project for client side pdf generation. I have installed the pdfmake library modules and it is working fine. but this

How to export my json data into pdf,excel using angular 2

I have created my Data table from the angular 2 website. Now I want to export my json data to PDF,excel using angular 2 framework. Kindly give me suggestion h

Invoke wrong Asset URL in single spa micro front-end

I am using single-spa library to achieve micro front-end functionality. I am using assets to display in the pages. But the URL that is generated to fetch assets

TransferHttpCacheModule doesn't prevent duplicate HTTP Calls in Angular 8

I've set up an Angular 8 Project with Angular Universal. To prevent duplicate HTTP Calls, Angular offers TransferHttpCacheModule. I followed the official Docum

Is there a better way to build an Angular monorepo app with libraries?

I have several apps in my Angular monorepo project. Also there are about 5 libraries I've written to use across the apps. What I want to know is how to better

Module not found: Error: Can't resolve 'fs' in

Oke, I upgraded Angular from 6 to 8. But I stil get errors. I found on internet a solution that for a lot of users helped. But in this case it doesn't helped me

How to define default route with parameters in Angular Component Router?

I want to have a default route in my sub-component (set with useAsDefault: true) and to have parameters automatically passed to it. I cannot find anywhere in do