Category "angular"

Unit testing angular 5 component with @ViewChild

I am using angular 5.2.0. I have a child component import { Component } from '@angular/core'; @Component({ template: `<div><div></div></

How to submit post data with ng2 file upload in angular 2?

I am using ng2-file-upload in angular 2. Is there any way to submit my form data with file upload action?

How to pass and receive object in component to NbDialog component nebular ngx-admin?

I want to pass object to NbDialogComponent and how to get object from NbDialogComponent. Anyone say, Is way correct? I try this way for pass object, Component f

How to query with multiple 'and' conditions in where clause in Strapi, GraphQL?

Now I am trying to query with multiple _and inside where in Strapi GraphQL playground. The query I am using is: { clients( where: { _and: [{ name:

How to decrease size of vendor.js in angular 2,4,6,7,8,9,10?

Angular CLI creates vendor.js and I don't know Why and What is the use of it?? Size of this file is about 3.2MB for a new app!! Does this file contains Angular

How do i display the value of a form control in the html view?

I know this sounds super simple but I can't get it to work. I know that I have to use the mustache tags to display it, but it just isn't displayed when I type s

Error: ENOSPC: System limit for number of file watchers reached angular

I am getting this error while doing my Angular 10 project. Error from chokidar (/myProject): Error: ENOSPC: System limit for number of file watchers reached, w

Why is Angular called a single-page application?

One of the most common terms associated with Angular(JS) is SPA. Why is Angular(JS) called a single-page application? Even if the URL changes in an Angular(JS)

Unit test for Button with disable

I am trying to write a unit test for a button that has disabled assigned to a boolean. html looks like: <button *ngIf="!data" id="createBtn" mat-button c

angular unit tests - start Chrome after successful build (taking long time)

On some machines building the Angular app takes more then 2*60s (default timeout for Chrome started by Karma to catch the content). Is there a way to force Kar

Angular Reactive Forms AddControl Causes ExpressionChangedAfterItHasBeenCheckedError When Using PatchValue

I wanted to be able to build up a reactive form using components, but not set it all up in a single parent component. So I created the intial FormGroup and pas

HTTPClient POST tries to parse a non-JSON response

I'm trying to make a request in Angular and I know that the HTTP response will not be in JSON but in text. However, Angular seems to be expecting a JSON respons

NGXS: Update deep level nested array state

So I have the following state: [ { name: "Main Tree", branches: [ { name: "Branch 1", branches: [] },

Ionic Video Mute Attribute Ignored

I am having a weird issue where the mute tag on a video element is being ignored. <video #media playsinline webkit-playsinline loop muted [src]="video

PrimeNG calendar clear current/today date when the user selects some other date on the calendar

I'm using p-calendar in my app to take input from the user for a particular time. The calendar works fine. However even when I click on some other date on the c

How to invoke method from filterFunction() in ng2-smart-table?

I am trying to invoke a method from a filterfunction() by using 'this' keyword. However, I realize that 'this' refers to the event handler instead the component

Angular 13: Namespace '"/node_modules/firebase/compat/index"' has no exported member 'User'. ts(2694)

1st error: Namespace '"D:/desktop/Programming/oauthAngular/node_modules/firebase/compat/index"' has no exported member 'User'. 2nd error: Type 'import("D:/desk

How to display a full screen modal

I'm trying to display a full screen modal but nothing seems to work. I tried to use the size: "lg" but the result is still way too small. I think it could be so

Angular Elements - cannot pass variable to @Input property of my Elements Tag

I need some assistance here, I am unable to pass a variable to the @Input variable of my Elements tag. If I hard code a caller-id = "123456" inside the tag it w

CSS for Angular .cdk-virtual-scroll-content-wrapper not applied

I want to customize a <cdk-virtual-scroll-viewport> by using the CSS class .cdk-virtual-scroll-content-wrapper so that the scroll container always shows a