Category "angular"

Where is the file angular-cli.json in the new @angular/cli version?

I'm new in angular2 and i have tried to create a project with cli, but when I try to change the css adding it in angular-cli.json, I have detected that this fil

Angular 13: Dynamic Html with data binding

My Requirement is to bind data to dynamically added HTML content. for i.e, app.component.html <div> <p> {{data.name}} </p> <div cla

Angular 9 compilation errors after migration from Angular 8

I migrated my angular app from version 8 to 9. After running ng serve --open, my app opens in the browser and gets stuck at the loading screen with this error

How to enable experimentalForceLongPolling in @angular/fire

There is an issue with Cypress and Firebase, based on some research I've done here it seems that Cypress intercepts all network requests and due to the nature o

@use is coming soon, but it's not supported in this version of Dart Sass

I am running ng serve with an Angular cli project which includes Sass. I have been using @import and @include with no problem, when I added @use, the terminal t

Remove all items from a FormArray in Angular

I have a form array inside a FormBuilder and I am dynamically changing forms, i.e. on click load data from application 1 etc. The issue I am having is that all

Dynamic Routes of RouteModule when using Module Federation Plugin

I'm developing a microfrontends application, using Module Federation Plugin. The routing of application container is: const routes: Routes = [ { path: 'lo

ngx-contextmenu - this.overlay.position(...) connectedTo is not a function

I am using ngx-contextmenu 5.4.0 and recently upgraded angular version to 13. After upgrade context menu was not visible and was throwing following error. I tr

How to determine previous page URL in Angular?

Suppose I am currently on the page which has the URL /user/:id . Now from this page I navigate to next page :id/posts. Now Is there a way, so that i can check

Angular google authentication with firebase

I want to create simple login authentication with google using firebase. I have installed angular CLI: 13.1.4, firebase, firebase: 10.1.1 & @angular/fire

AngularFireFunctionsModule from AngularFire Causes build errors

I've run into a bit of a snag when adding in the AngularFireFunctionsModule. For some reason, despite having successfully included AngularFireModule, AngularFir

Angular 8 & Angular Material: Drag Scrolling with CdkDropList item

I'm trying to provide scrolling while dragging a cdkDropList item. As of right now the page can't scroll without using the mousewheel to scroll. I was hoping to

Primeng table p-table,set conditional column editable

I am using Primeng p-table control in my angular 7 application. Below is the html code I am using: <p-table [value]="data" [reorderableColumns]="'true'" [co

How to apply a component's [ngClass] to its child element

Is there a way to allow ngClass to be set on a parent element, but redirect it so the classes are actually applied to a child element? <!-- Parent Componen

Chartjs bar chart blurry when height is set

I am using chartjs 2.7.3 and I have a problem when setting the size of the div that encloses canvas the image is blurry and letters are not visible like the scr

Issue: No 'Access-Control-Allow-Origin' header is present on the requested resource

My problem is that I can't access to GET method from my Angular app because of the issue: Access to XMLHttpRequest at 'https://localhost:44337...' from origin '

Cordova 9.1 Android Application white screen for Android 10- (works for Android 10 +)

I created a small angular application where I added Cordova to generate a web and android application. Everything was ok when I used angular version 6 and Cordo

node.js not found (but installed) when compiling the default angular project in Visual Studio 2019

I've created in Visual Studio 2019 a default Angular project with .NET Core 3.0. When I build the project and run it, I obtain the following error: error : No

webpack-dev-server error after migrating to angular 13

After my migration from angular 12 to angular 13, i am getting the following error in the console: Also if i change something in my code the browser does not r

Angular 2 - Does ngOnDestroy get called on refresh or just when navigate away from component?

I am trying to figure out if ngOnDestroy in Angular 2 gets ran on a refresh or just when someone navigates away from the page?