I have a piece of code of custom component. Here are related code: @Component({ selector: 'scrs-tab-container', template: `<ng-contnet></ngcontent>`
I'm using Jest to test my Angular app (using Nx workspaces). I have a component that uses a service that I'm trying to mock. Here's the code: myDummyService.per
i am trying to import scripts from importScripts("https://www.gstatic.com/firebasejs/9.1.0/firebase-app.js"); importScripts("https://www.gstatic.com/firebasejs/
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
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
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
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
On Angular, I am trying to validate email using following regex - ^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.
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
I wanted to check if each length of array of objects of inspectionScheduleUnitContactArtifactDto , if there is one inspectionScheduleUnitContactArtifactDto whic
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
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
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
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
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
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
Is there a way to index an angular website using the web crawler functionality of elasticsearch?
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
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
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