Category "angular"

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

ERROR in ./src/polyfills.ts Module not found: Error: Can't resolve 'zone.js/dist/zone'

I have an angular 8, that uses karma/jasmine to run some unit tests. I can run tests by executing the following command ng test but I'm getting the following er

Areas do not work when migrating an Angular app to NET 6

I have an .NET Core 5 with Angular app and I have my controllers grouped in areas. I made the app using NET Core 1 and have successfully migrated it up to 5 wit

How do I iterate an array of JSON data to always get the first JSON object

I'm trying to get the first JSON object from the video array, I only want to get full highlights and not the goals. { "response": [ { title: "United

How to add event Listeners in Angular?

I am writing an app using Angular 6, trying yo listen to plotly_click events (Visualization library). How can i set up a listener? The Angular is recommendin

I can't access page using http-server

I tried to access the page using http-server -p 8081 but the browser said "No webpage was found for the web address: http://localhost:8081/app/home" I run ng b

Angular Material mat-select - Showing count number along with the first selected value in multiple selection

In mat-select multiple selections, all the selected values are displayed in the select field. I want only the first selected value along with +1 or +2 etc if mo

Selecting options from Mat-select using cypress

I have Mat-select dropdown as follows <mat-form-field> <mat-label>Gender</mat-label> <mat-select id="gender" required formContro

How to mock browser requests based on har files?

I've exported a har file of my application. Now I would like to reuse it when the server is crashed (it's quite often issue). I was looking for an application t