Category "angular"

ERROR Error: Uncaught (in promise): NullInjectorError: R3InjectorError

I have an error message: ERROR Error: Uncaught (in promise): NullInjectorError: R3InjectorError(MarketModule) [IndiceService -> IndiceService -> IndiceSer

Focus a specific mat-option item when mat-select dialog is opened?

I want to focus to an option(scroll to an option) automatically when mat-select is opened. I thought that with a little bit of search this will be solved easily

@angular-architects/module-federation to customize a monolith build

In our company we are trying to implement micro frontend concept using @angular-architects/module-federation plugin. We used very basic configuration, nothing s

Angular Routing with Fragment Hash doesn't work if I click the same anchor twice

I am trying to redirect within the page, using a fragment in an anchor tag. It works fine the first time but when I scroll the page up manually and press the an

Angular Material Datepicker Popup positioned wrong

First of all, this material datepicker is based on: https://stackblitz.com/angular/qmnrlgabjly?file=src%2Fapp%2Fdatepicker-views-selection-example.ts I have cop

Karma tests: Cancelling of Subscription in finalize does not work

I have this scenario: there is a service taking data from BE. Every call of this service (its method) is subscribed and this subscription is saved to Subscripti

Angular. Consuming service from module

I have a project with ConfigService which reads values from config.json Also I use AuthModule from Nebular which configures in module (core.module.ts in my case

owl-carousel-o is showing item vertically

i'm using Angular and i want to show items in normal way (using owl-carousel-o) , but that's how they're shown in the Link that's the app.component.ts code

type undefined error on ng-apexchart for angular

Help me understand this error, please. I am simply trying to create a bar chart for my angular web app using ng-apexchart. I am following this article . I am no

Launch Bootstrap Modal Dialog on Load in Angular 8

I need to launch a modal dialog on page load of angular 8/ Visual Studio project. It is working fine with the click of button, however I cannot figure out how t

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"