Category "angular"

Angular Micro frontend taking time to load module on while navigating

I am using Angular 12 and implemented a micro frontend using Webpack5 Module Federation. Application is working fine, but the micro frontend application that I

Why does mat-tree toggle throws error when used to create story file?

I have created a tree component using mat-tree in a storybook module, and when I use it inside a component it works just fine. The problem is when I use it to c

Angular error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class

ERROR in node_modules/@angular/material/dialog/dialog.d.ts:142:22 - error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an

how to update user profile using nodejs and mongoose

On the client side the user can update their profile through a form where the data is sent via form to the nodejs express backend. I want to use mongoose to upd

Angular: Dynamically find headers when converting JSON array to HTML table

In Angular, I want to convert a JSON array to an HTML table. I have seen an old answer for AngularJS: <table> <thead> <tr> &

Error: export 'default' (imported as 'Swal') was not found in 'sweetalert2' (module has no exports)

I am trying to include sweetalert2 in my Angular project, but it gives compile time error. The error /src/app/pages/signup/signup.component.ts:29:16-25 - Error

How to find the length of data source using typescript in angular application

Unable to find length of data source(array) using typescript in angular application this.activatedRoute.data.subscribe( (res) => { console.log(re

Angular 9: Value at position X in the NgModule.imports is not a reference

I upgraded an Angular App from v8 to v9. The project imports a custom UI library using Angular 8 and moment.js. When I build it: It generates a warning: WARN

ng-select items not visible

I added ng-select to a new Angular 11 application, and it seems to be working fine until I open the dropdown. When I open the dropdown, I can select items but I

What is the difference between valueChanges and snapshotChanges()

this is my component.html <div class="form-group"> <label for="category">Category</label> <select ngModel name="category"

WifiWizard 2 ERROR_ADDING_NETWORK

I need some help. I try to develop an app which is setting up the wifi connection on an android device. I try to use WifiWizard2 with this.wifiWizard2.connect(s

Why @HostBinding is triggered continuously even though the variable didn't changed? (Angular)

I joined a new Angular project and on the app.component.ts are some @HostBindings that are called non-stop even though there is no direct event that is triggere

How to chain subscriptions and return a single observable

i m trying to chain 3 subscriptions in a service and return an observable so all the components can subscribe single observable. When i console.log "_campaigns"

Dynamically added svg iamge not visible in Angular

I tried to add svg image on my application but it's not visible. The image link is coming from the backend. I tried multiple ways but nothing is working. 1st wa

How do you know what package version you need in angular?

I had an asp.net core app on Angular 10.2.4, decided to upgrade to 11. Ran: ng update @angular/core@11 @angular/cli@11 it failed complaining of devkit. Uninstal

Material Icon showing as the name when site first loads

There is an issue with Angular 7 and materials icon where the name of the icon shows when the site is initially loading. Is there a way to prevent this

How do I migrate Angular from 10 to 12 in a correct way> [closed]

I am working on Angular project migration. Initial project was Angular 10 -based and now I am migrating it to Angular 12. But the project is n

Tailwindcss version 3 classes not working on class attributes, but works on @apply for Angular 13

I'm unable to get Tailwindcss classes to appear on the inline "class" attribute. But if I @apply I through the ".scss" file and use that class on the inline "cl

Type 'object' is not assignable to type 'NgIterable<any> | null | undefined'

<!--app component.html--> <div class="position-relative container"> <div class="row justify-content-center"> <div cla

css issue fix table design

Please can anyone help me to fix the design of my table to be more clear and more presentable? I want 6 months for example in front of engagement, 599 DT I fron