Category "angular"

Angular not grabbing elements by class name when page is loaded

I am trying to get the document.getElementsByClassName('side-nav-link-ref'); elements in my angular html view and It keeps returning empty. I’ve narrowed

Angular 10 PrimeNG | Cannot assign value "XXXX" to template variable "activeTabIndex". Template variables are read-only

I have create one html component to create tabs using template to render the html, but here I want to make active specific tab from my code. I am using template

How to close parent dialog depending on selected answer in confirm child dialog in Angular?

I'm trying to close a parent mat-dialog depending on the answer to a child confirm mat-dialog in Angular. The child confirm dialog says "You have unsaved chang

Angular 12 FormGroup dynamically Array checkboxes custom validator does not work

I am creating an Angular 12 app, with Material. I have a form with an checkbox array loaded dynamically from database. I need to validate that at least one chec

Angular 7 email validation using regex on reactive form

On Angular, I am trying to validate email using following regex - ^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.

Test Typescript Service : Multiple Subscription on one Observable

I am having a problem performing a test on a typescript service. I have a function that returns an observable. I use .subscribe() to look at the result and veri

checking array of objects

I wanted to check if each length of array of objects of inspectionScheduleUnitContactArtifactDto , if there is one inspectionScheduleUnitContactArtifactDto whic

NestJS WebSocket

I use angular in the front end where I am learning to use rxjs-websockets. In backend I use nestjs, where i want to learn to use websockets. But every tutorial

Getting error trying to use TinyMCE cloud in my Angular 13 app - Module 'tinymce' has no exported member 'RawEditorSettings'

I have created a new angular app and have installed these: npm install --save @tinymce/tinymce-angular npm install --save @types/tinymce I've included the Edito

How to display data from client service in ngx-wheel Angular

I want to display the ngx-wheel using api but I'm having trouble displaying the data. Here my Service : import { Injectable } from '@angular/core'; import { Htt

Angular 8 ERROR Error: Unable to find context associated with [object HTMLDivElement]

Just another day in the office, right? What once worked is no longer working. Yay! I am supporting an Angular 8 web application and attempting to kickstart loca

Angular TreeView JSON response

I am new to Angular and i need your help !!! I have a TreeView in my Angular project. i can generate TreeView from my API Response. My problem is I don't know h

Angular ERROR TypeError: Cannot read properties of undefined (reading 'onDestroy')

I have problem. Angular is sometimes showing error ERROR TypeError: Cannot read properties of undefined (reading 'onDestroy') I am getting this error when I am

Web crawl angular website for elasticsearch indexing

Is there a way to index an angular website using the web crawler functionality of elasticsearch?

type 'never[]' is missing the following properties from type 'Observable<Customer[]>'

I want to fetch customers list from my back-end via get Http call. But i am unable to declare array of customers in my component. I have customer.interface.ts l

It looks like '' has not been IVY compiled - it has no 'ɵcmp' field

I am currently using Angular 11. When I run the unit tests, all pass except one which says: Error: It looks like 'ResultsService' has not been IVY compiled - it

angular workspace : I do run the application but I getting this type of error NGCC failed

Generating browser application bundles (phase: setup)...Error: ENOENT: no such file or directory, open 'D:/Harry/client/src/src/main.ts' at Object.openSync (nod

component styleUrls not working in production build Angular

I recently updated one of my projects to Angular 13 from 10, during development everything worked just fine. Then when I generated a production build to notice

Angular: how to set up Content-Security-Policy & Trusted Types?

Having read the Angular security guidelines, I would like to: configure the content security policy enable the trusted types enforcement Here is how I changed m

Cordova Android: Can I get any information on underlying Java/HTTP exceptions

I have an Ionic/Cordova Android application that is deployed on various different client internal networks, where the application connects to a http service run