Category "angular"

How to disable typing but allow copy and paste in a text box in Angular 8?

I want to restrict typing in a text box but I need to paste anything inside that textbox in Angular

Angular <p> displayed by *ngFor won't float to the right

I have this chat in which I'm trying to apply styles to the "chat-container". The messages are displayed with Angular's *ngFor as follows: <p *ngFor="let m o

Deep link works, but causes a menu to disappear

I have a deeplink in my app with ionic 5 and I'm using Firebase dynamic link with all configuration as assetlinks and others. The link allows me go to internal

Angular load file content once on startup

I am using Angular 5 & need some configuration data from a .json file before Angular startup. I tried using APP_INITIALIZER as below in app.module.ts const

How does one import a third party library to an Angular project?

I've got a project that needs to use a third-party custom library that was given for the project. How does one correctly use/integrate it? Do you have to import

Warning: Entry point 'angular-instantsearch' contains deep imports into '/node_modules/instantsearch.js/es/connectors

After installing these two package in my Angular application 13.0.3. I am receiving this below warning. "angular-instantsearch": "^4.1.0", ⠙ Generat

NZ-Table of NG-Zorro doesn't show any data

I'm developing a page where I use a table from ng-zorro, I get the data from an API, but after I filtered the Data the table just show the "No data" display, no

Ionic and Amplify Storage GRAPHQL_AUTH_MODE Error

My current setup is: Ionic, Angular, AWS Amplify (GrapghQl, DynamoDB, Authenticator, and Storage) I had everything working until I added Storage following the i

"Error: ENOENT: no such file or directory, lstat" for dist folder

I am using Angular 13 and the command "ng add ngx-bootstrap" installed the following: "bootstrap": "^5.1.3", "ngx-bootstrap": "^8.0.0", Now it fails to find the

NGXS global state's slices emit on every navigation

After tracking down unexpected requests being made I've found that my app's global user state's slices emit upon every navigation. What are potential causes of

Clear C# String from memory - Angular

I'm trying to clear the memory contents of a C# string for security reasons. I am using a ngmodel to have the user enter their username and password, once I hav

Store Object with Angular Autocomplete, not only Value in Input

Working on Angular, I created an Input with mat-autocomplete and mat-option (data comes from an Object Array, using NgFor). Properties of Object are ID, name an

mat-select is not level A compliant according to AInspector WCAG

I'm using Angular material in my website and trying to make it WCAG level A compliant. Doing some checks with the AInspector (extension for Firefox) seems the m

Angular Proxy to .net Core backend works every other time

Running into some weird stuff.. Trying to hit my api from my angular app. Since We need to use windows authentication we need to setup a proxy.conf for angular

Error: export 'ɵCssKeyframesDriver' (imported as 'ɵCssKeyframesDriver') was not found in '@angular/animations/browser'

After upgrading my Angular from 12.0.2 to 13.0.3 everything was working fine. I was trying to remove some packages that was not used such as jquery, and some ot

How to store hue from primary color pallete in global variables in angular material?

I am extracting 500 hue from primary pallete and I want to store that hue in global scss variable so that I can use it anywhere. But it is not working. My code:

Module not found: Error: Can't resolve 'trusted-types' in '' angular

getting Module not found: Error: Can't resolve 'trusted-types' installed trusted types using this command npm i @types/trusted-types --force. and npm install t

Angular module federation on azure app service

I’m creating a website with webpack federation module. For this I have 3 projects out of 3 different git repos. So I have 3 here in azure devops. My quest

Cannot access a directive before initialization. Reference error

I have an Angular module with a static function called forRoot() that receives an object as a parameter and a service with a parameter in the constructor called

How to map a subarray

I am using a sample I found online to map a subarray and can't seem to get it to work. import { Component, OnInit } from '@angular/core'; @Component({ select