Category "angular"

How do I rerun "ngOnInit()" after navigating to the same URL (parameter is different)? [duplicate]

In my app there is a URL like /organization/campaign/{campaign handle}. My goal is to redirect the user to a default campaign handle when the

Upgrade Angular - Two or more projects are using identical root warning

For updating Angular 8 to 9, I am following the official document to upgrade. Which suggests first updating to the latest version of angular 8, like: ng update

Upgrade Angular - Two or more projects are using identical root warning

For updating Angular 8 to 9, I am following the official document to upgrade. Which suggests first updating to the latest version of angular 8, like: ng update

How to handle form error validations in Angular

I am new to Angular and in my form I have three fields Name, email and radio section. My requirement is: when I select name radio button Name input field is req

Cannot find a differ supporting object '[object Object]'. NgFor only supports binding to Iterables such as Arrays

here is code i am trying to access object of objects. template <table class="table table-striped"> <tr *ngFor="let response of response"> &

passport-jwt in MEAN-Stack returning Internal Server Error 500

Im using passport.js JWT strategy to authenticate my MEAN-Stack app. The unsecured routes work properly but i cant get the secured routes to work. they allways

How to manage the Strategy user info in NestJS and pass it to the client side in Angular?

I'm doing a little project in this quarantine time to learn about the backend part of a project. In this case I'm using Angular as client-side and NestJS as bac

How do I test periodic fetching json in Angular

I want to test periodic(1second) fetching json into components. I made setInterval() function in the component's constructor. That function is to call apicallse

Unable to read json file in angular application using http client in cloud application

I am having issue while reading JSON files in angular application using http client after deployment. FYI, Code is working fine in my local machine and able to

PrimeNg Icons Not Showing (Checkbox and Select)

Checked box and select sans icons. I've added the primeicons library per: https://github.com/primefaces/primeng/wiki/Migration-Guide However, something is st

Retrieving an xlsx file using http.get() and then loading said file into ExcelJs in Angular

I'm using HTTP GET to retrieve an xlsx file that I then want to load into an ExcelJs workbook. After which I want to add an additional sheet to the workbook and

How to trigger the beforeinstallprompt event on my PWA?

I build a PWA using Angular 9 which can be seen here and I implemented an beforeinstallprompt event handler so as to offer the user a way to install the PWA as

How to export to excel file from API

Have angular datatable and table contains more than 50k records, if we trying to export to excel taking lot of time and browser is not responding. If possible c

Cannot read property 'setProperty' of undefined fxFlex issue with ng-container Angular 9 Flex Layout

<div [fxLayout]="fields.layoutConfig.layoutDirection + ' wrap'" fxLayout.xs="column" [fxLayoutGap]="fields.layoutConfig.fxLayoutGap"> <ng-cont

how delete focus border on click date

I need to put a date in my apllication so I do this: <!--data --> <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6 col-xl-6 f

How to format and validate email node js

I would like that email had format like: [email protected]. Which is the best way to do it? I have a component for registration and I have the field like this: <mat-f

How can I use moment.js to add days, excluding weekends?

I'm setting a default follow-up date two days from current date, which currently works: const Notify = moment().add(2, 'days').toDate(); However, I would lik

Bootstrap modal opens on background (Angular)

I have modal that I open from the table, that in the material tab Here is Modal HTML <div bsModal #createOrEditModal="bs-modal" class="moda

Show error message after reactive form submission

On an Angular 8 Reactive form I have the following: <form [formGroup]="form" (ngSubmit)="onSubmit()"> <input id="name" type="text" formControlName="

Remove Unused CSS on Angular 9 build process

I have an Angular 9 project which I added Bulma on angular.json > projects.projectName.architect.build.options.styles so it bundles up the framework on style