Category "angular"

Angular ngIf condition breaking javascript logic

I have the following nested dropdown list. The child items are initially hidden and clicking on the parent toggles an "open" class to display the children. I am

How to change dynamically 'aria-pressed' = false to true using JS

I have no idea about JS. But there is needed one line of code. i have below JS code. const quillEditors = document.getElementsByTagName('quill-editor'); f

Get Array of Values from a Nested Data

guys. How to get values from an array of the nested object, which I getting from the parent component. For example: @Input() result?: FullResult; construc

Nested FormGroupDirective in child components

There is a problem with FormGroupDirective dependency injection. I have an example of relation component to each other: <app-component-group> <child-

How does Angular differentiate between refresh event and close browser/close tab event?

How does Angular differentiate between refresh event and close browser/close tab event? I tried to listen to the event beforeunload, but I found that this event

Windows angular need to create files with CRLF endings

I'm on windows and want in my angular project the cli to create components with CRLF endings. Right now angular CLI creates scss file with CRLF and other files

Windows angular need to create files with CRLF endings

I'm on windows and want in my angular project the cli to create components with CRLF endings. Right now angular CLI creates scss file with CRLF and other files

Sign in with Apple implementation with Angular

I am trying to implement Sign in with Apple in Angular website. The flow of implementation starts with adding in the index.html file. Then created a service ca

how could I draw a rectangle inside an image using Angular using canvas?

I need to draw a rectangle inside an image recording to x,y. I used a canvas tag and inside it I used an img tag but the image didn't appear because the canvas

how to disable angular material typography styles?

how to disable angular material typography styles after installed angular materials? It is changing my visual style and it is not easy to overwrite. I dont need

Cypress with Azure AD (MSAL)

I'm new to both Cypress and Azure AD, but I've been following the steps described here to create Cypress tests on an existing Angular app that uses Azure AD. It

Angular - Typescript dynamic import module using variable

I'm building an Angular app that lazy loads modules without routing, simulating plugins. I have this function in a Service that loads a module (hardcoded right

Render angular.js template on click href

Hei friends,I'm kind rusty on mvc I need help. This is the cshtml ,my html and script is in the same page ,I want to render angular html Without refreshing page

gapi.client.youtube is undefined in angular app

Note: I know the subject looks similar to that other question, but it is different I have angular app that calls Google API (gapi). I have functions that call g

Angular Material 13 - How to change the color of a border of a mat-form-field

How to change the color of a border of a mat-form-field ? (The border when the field is selected) thx ^^ screen .search { display: flex; justify-content: ce

Ionic Blank Screen After Updated It to Ionic 6

I updated my ionic app to Ionic 6, and when I tried to run my app and It gives me a full Blank Screen, and only this error on the debug console: main.js:1 ERROR

how to set two value in one optionLabel? in Angular PrimeNG

I want to set two values in one label. As an example, if I open dropdown it should show as "value1 value2" in one line with space. value1 and value2 data are

Use Angular Material mat-icon with custom svg icon in angular standalone library

I'm creating this angular library for a project, and inside it, i'm utilizing @angular/material mat-icon component. There is some custom svg files included as a

Angular - Cannot read properties of undefined (reading 'forEach') by trying to manipulate variable after an HTTP call

I'm trying to manipulate a variable after an HTTP call. I want to use functions such as .push() or .forEach(), but it doesn't allow me because data isn't assign

After Angular 13 Upgrade, Jasmine Unit Test Fails - Expected one matching request for criteria "Match method: POST, URL: api/x/x-search", found none

After upgrading to Angular 13 from 12, some of the Unit Tests started failing: Error: Expected one matching request for criteria "Match method: POST, URL: api/