Category "angular"

AWS Amplify Cognito Angular Unit testing

I am new to unit testing and just decided to add test coverage for my existing app. I am struggling in writing the unit test cases for the given service . I hav

ngx-translate Problems with unit testing

0 I'm using ngx-translate library and having some issues with unit testing because it wont find certain provides. The issue its that even tho i place a provider

Unable to debug Angular with WebStorm

I have an Angular application (Angular 2) that I can launch without issue from WebStorm, however when I try and set breakpoints none of them are ever hit. WebSt

cors issue with angular & nodejs [closed]

i'm using angular & node.js & cors in my local device everything is good and work and now it's time to deployment to cloud server the

MediaObserver vs BreakpointObserver - what are the differences?

After doing some searching, I came to realize that I'm supposed to use the Flex-Layout library to make Material-themed UI responsive (as answered here). And acc

How to fix the header of mat-tab

I am having 5 mat-tab and each tab is having a large amount of data so scroll is getting added to that window. Is there any way through which I can fix the head

RangeError: locale must contain localize property when using Angular material date picker with date fns

I have the following configuration on the app-module.ts import { ReactiveFormsModule } from '@angular/forms'; import { DateFnsAdapter, MatDateFnsModule } from '

Set custom height for Ngx Editor

I am using ngx-editor for creating wysiwyg editor for my MEAN stack application. Everything is working fine but I want to set height for this editor. I have tri

how can i convert sec into hh:mm:ss format in angular2

i have tried this Time Left={{counter}} but it show me just in second format. i want in hh:mm:ss format. i want to implement his functionality in quiz timer

how to lazy load the children view by default?

I'm trying to make the view dynamic when using the loadchildren() property For example, I've got 3 components app.html : Hello App <router-outlet></ro

Ionic 3 pause and resume events triggering multiple times in Android

I am facing strange issue in ionic 3 pause and resume events, whenever I paused the application, events are calling multiple times(once 2, once 3 etc). Here is

Angular component ng-content passing template with dynamic output placeholders

Is it possible to have a component that can handle dynamic projection like this? <my-component [date]="2022-03-22"> <p>This date falls on a <

Ngx-datatable set column width dynamically

I'm storing the column widths of my ngx-datatable inside a database. I get these values using an AJAX call. How can I set these values for the datatable? What

What's the best way to add localization-translation to angular mobile application, all languages? [closed]

What's the best way to add localization-translation to angular mobile application, all languages??

How do I publish a .NET Core + Angular single page app for different environments?

Some additional context: I created a solution using the Angular project template with ASP.NET Core in Visual Studio 2019. The app has several different environm

Content type 'text/plain;charset=UTF-8' not supported for post request in angular 4

I'm using post request with HttpClient like below, return this.httpclient.post<any>(url, body) .catch(this.handleError) then it gives me be

ASP.NET Core and Angular Deployment - page refresh gives 404 error

I am working on a project in Angular and ASP.NET Core hosted on Plesk. The project is working fine except the page refresh yields the 404 page not found error.

Filtering an observable array into another observable array (of another type) by an observable property of the items

As the title probably doesn't explain to well what I am doing, I'll give a small example: A REST api returns a list of objects. For each of them, a checkbox sh

Web App SPA & OIDC: How to properly authenticate before accessing the front?

I have a regular web app, composed as usual of a frontend SPA (angular) and a backend. The server calls are protected from unauthorized calls through authentica

Function DocumentReference.set() called with invalid data. Unsupported field value: a custom Budget object

Below code works fine until today. But I don't know now it is not working and gives below error.Could you tell me why? Error: Function DocumentReference.set