Category "angular"

Cannot find a differ supporting object '[object Object]' of type 'object'. NgFor only supports binding to Iterables such as Arrays

I looked at similar questions, but none of them helped me. I am going to receive an object like the following: [ { "id": 1, "name": "Safa", "emai

Ionic-angular ion-textarea's height shrink

I'm coding with ionic-angular framework for some project. When I use ion-textarea, sometimes the textarea's height is decreased 0px. If the textarea code like t

Different routes same component

I want to achieve something like this /products shows all the products and /products/:category shows all the products related to a specific category. To achieve

How to manage Angular2 "expression has changed after it was checked" exception when a component property depends on current datetime

My component has styles that depend on current datetime. In my component I've got the following function. private fontColor( dto : Dto ) : string { // da

Angular Textbox Undefined

So I'm trying to programmatically edit a textbox in a webpage through chromes developer console. This is the code of the textbox. <input formcontrolname="use

Set default launcher flags when I run ng test without additional arguments

I need to pass custom argument to chrome in order to set locale: --lang en-US I've done it using customLauncher. My src/karma.conf.js: module.exports = functi

Bug mat-drawer-content height 100% angular 8

css: .mat-drawer-content { position: relative; z-index: 1; display: block; height: 100%; overflow: auto; } Hello, I have a problem that

BehaviorSubject vs Observable?

I'm looking into Angular RxJs patterns and I don't understand the difference between a BehaviorSubject and an Observable. From my understanding, a BehaviorSubj

Angular/Karma unit test error "1 timer(s) still in the queue"

This is hardly first encounter I've had with "1 timer(s) still in the queue", but usually I find some way to use tick() or detectChanges(), etc., to get out of

Unable to update Angular from 10 to 11 due to dependency errors

I am following this site and trying to update my project to 11.0 through the following command. npx @angular/cli@11 update @angular/core@11 @angular/cli@11 Eve

Angular SPA with Custom --base-href and Nginx Routing

We have an angular SPA application that we need to change the base path from www.site.com to www.site.com/app We added --base-href=/app to our ng build comm

ngx-infinite-scroll scrolled event won't stop firing

I implemented infinite scroll with ngx-infinite-scroll. When the user reaches the bottom of the scrollable element (with a fixed height), the event 'scrolled' w

Navigate relative with Angular 2 Router (Version 3)

How to navigate relative from /questions/123/step1 to /questions/123/step2 within a component using Router without string concatenation and specifying /question

(Angular) Watchpack Error (watcher): Error: ENOSPC: System limit for number of file watchers reached

I'm trying to make a project in angular but when I try to compile it shows me these errors over and over till my IDE closes. Watchpack Error (watcher): Error: E

Ng serve throwing @angular/core/core has no exported member 'eeFactoryDef'

Im getting like 50 errors that all say that angular/core/core has no exported member 'eeFactoryDef'. They come from different node_modules, for example angular

Angular2 : render a component without its wrapping tag

I am struggling to find a way to do this. In a parent component, the template describes a table and its thead element, but delegates rendering the tbody to anot

Angular 2 formatting currency BRL format

I'm trying to use pipe to format the price of an item in PT-BR currency format. Here what i'm trying to do: <div class="desc">{{statement.price |

Why powershell does not run Angular commands?

I have started to learn Angular but I note that powershell in Windows gives me an error whenever I make an angular command like: ng new new-app or ng serve

Angular EventEmitter in merge()

I made a component that shows a list of data-items which can be changed either by pageSelection, sortOrder or filterChanges. This is the code: import { EventEmi

Using an Angular 2 http.post without subscribing? Or am I thinking of it wrong?

Is there a way to just tell the server to update data without subscribing? Skipping a return statement and a subscription seems to render the http call inert.