Category "angular"

Angular FormArray display validation errors

I have Angular form that is built with help of FormBuilder. Form contains a FormArray which has as many fields as user wants. I've set validator for fields this

Updating Apexchart series on daily bases in angular

I am using apexchart but cannot know how to use updateseries I have tried directly sending the values HTML <apx-chart [chart]="{ ty

Copy and select the text from ag-grid

I am using the Ag-grid in my project. after came far i got to know that text inside the grid user not able to select. Is there any help i can get to select and

how to pass data from angular material dialog to parent component?

I'm using angular 6 and I have a button which opens a dialog. in my dialog, I have a form that gets user's data and then I have two buttons to submit and cancel

Angular 10 “No definition found for …” in HTML component in Visual Studio Code

I'm working with angular 10 in VSCode and everything was working fine until today. Suddenly I can't go to definition from HTML component neither via F12, right

Connecting to angular and springboot app from external IP

First of all, thanks for taking your time in reading this. I have a Spring boot backend running locally and angular app making calls to this backend to to do CR

Angular Bootstrap dynamic dropdown menu overlaping

I am trying to develop a dynamic menu with angular and bootstrap for angular. Specifically, I have been able to get the menus and submenus to display on the pag

Why is ngOnInit called twice?

I trying to create new component, ResultComponent, but its ngOnInit() method is getting called twice and I don't know why this is happening. In the code, Result

Grammatically correct plural / singular endings

Using a for loop, I have created a counter for late items by looping through items retrieved in a web request, setting a property of late as true if conditions

How allow multiple search with ngx-datatable

I'm using this https://github.com/swimlane/ngx-datatable/blob/master/demo/basic/filter.component.ts to help me create a search in my table. My goal is to creat

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