Category "angular"

Input not rendered for ion-input in tests

I have a simple form with two fields: username and email. My test looks like this: ... fit('should create', () => { console.log(fixture.debugElement.nat

How to detect dead or unused code in Angular?

I and my team are working on an angular application from more than a year now. As part of our code refactoring process we want to delete unused or dead code fro

How to clear pre-defined blockly custom blocks in Angular

I have some problem initializing custom blocks I created blockly custom blocks to modal export const ConditionBlocklyBlock: Block[] = [ { type: 'SUM_MAT

ngx-webcam how to identify if user allowed webcam permission or not - Angular 4+

I'm having issue with ngx-webcam plugin in Angular4+, as i'm using this plugin to capture images in my application but when user doesn't allow permission of usi

How to convert ArrayList to Pageable object springboot

I was trying to return list as page object to my client side angular Application. But it return all the list not a page. this is my server side controller m

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