Category "angular"

.cdk-drag-preview not applying styles

I am using the cdk Drag and Drop from angular material, but the drag preview is not working as intended.. I want the preview to look exactly like the element be

How can I execute ng test for all components of sub modul of Angular app

I have my angular app, declared like this: app.module.ts export class AppModule {} for which I can run tests with ng test MyApp Within this app, I have mul

ag-grid not respecting column order of columns set in ColumnDefinitions

According to ag-grid, the column order will follow the order they were specified in column definitions. Reference But this is not working when working with ag-g

Polling requests using rjxs and angular

I am trying to create continuous polling using rxjs and angular. Below is an implementation of my requirement. My app.component template has for instance 2 or

mat-paginator breaks when mat-table is inside of NgIf

I have an angular project that is using mat-table and mat-paginator for a certain view, the problem is the view has a grid view and table view with a toggle, th

Why does Angular httpClient returns an Observable instead of a Promise? [closed]

I made a spring reactive backend which returns Flux<> object. When I call the service with angular httpClient and subscribe to the obser

Using CSS hover property in Angular directive?

Here is the directive, the default one. import { Directive, Input, Renderer2, ElementRef } from '@angular/core'; @Directive({ selector: '[newBox]' }) export

Override PrimeNG component CSS

I am using PrimeNG OverlayPanel to be displayed in dropdown click but I have a problem to move default left arrow to right position. I tried everything that was

Is there any way to modify the MatDialog overlay order?

I want to implement basic dialog handling in my application, with 2 functions: To close all open dialogs: Easy with MatDialog.closeAll(); Enable the user to swi

DIsplay popup when user refresh the page in angular 8

I want to show popup when user refresh/close tab in angular 8. I used candeactivate gaurd but its working when I change the route but not when I refresh/close t

Is there a way to get an initial event when using firestore/angularfire collectionChanges() on an empty collection

I am using Firestore with AngularFire and am currently trying NgRx for a new feature. As recommended, I am using collectionChanges instead of collectionData, to

How to solve this error Module not found: Error: Can't resolve 'fs'

I have created new angular project with electron.I do need to set up the electron. I have got below errors. ERROR in ./node_modules/electron/index.js Module

Ionic 3 Livereload not working on Android device

In one of my projects where the --livereload flag was working , suddenly the feature is not working but I see Launch Success message on my console. After launch

textarea does not update after typing in it

I'm having an issue where the textarea does not update as expected. Here is a screenshot of my webapp: When I click on any of the buttons "EN", "ZH", "JP", or

How can I resolve 401 unauthorized in angular?

I create .Net Core API and I configure the windows authentication. In my angular application I have to put in each request this option withCredentials : true. I

How to customize csv data in amcharts3 export function in Angular

I have 2 columns 1 with id and the other with a count. Now I want to add a column to display the percentage in the CSV and a heading for the file. data: [ { 0:

Customizing mat paginator

I am trying to build a list page which has large number of data items so I used mat-paginator for simplicity in reading. I tried to customize styles in mat-pagi

Customizing mat paginator

I am trying to build a list page which has large number of data items so I used mat-paginator for simplicity in reading. I tried to customize styles in mat-pagi

ag-grid column not automatically resizing in angular

I am trying to fix the sizing of the columns issue on the ag-grid in angular 7 application. I have been trying several options as suggested but not getting a so

How to find a specific ID from an Array of Objects in Angular View

I am building a shopping site and I want to switch a button Text from 'Add to cart' to 'In Cart' cart array is set in auth provider so it's accessible in all co