Questions tagged [angular15]

For questions regarding Angular specific to version 15. Please include all relevant tags on your question; e.g., [Angular], [TypeScript], etc.

342 questions
0
votes
0 answers

How can I find an item in an array and remove it

I'm trying to remove an item inside the _state[] by comparing the id of the item to be removed. I used filter but when trying to call this action throw the store all the values are still showing. export const bookReducer = createReducer( …
0
votes
0 answers

Error at "column.headerCell" in mat-table

I'm trying to make a mat-table, in angular 15, but it's giving the following error: ERROR TypeError: column.headerCell is undefined Mt HTML looks like this:
0
votes
0 answers

Dynamically load Zg-Zorro icons in angular app with Content-Security-Policy enabled

I have enabled CSP in my "@angular/core": "^15.1.0" project and using Ng-Zorro "ng-zorro-antd": "^15.0.2" and have enabled Dynamic loading of the icons. "options": { "headers": { "Content-Security-Policy": "trusted-types…
0
votes
0 answers

mat-expansion-panel 'closed' event is called with random index instead of 'destroyed'

I am using mat-expansion-panel inside cdk-virtual-scroll. I want to hit a function when the panel is destroyed after scrolling, but the (closed) event is called instead of the (destroyed) event, having a random index as a parameter.
0
votes
0 answers

window.innerWidth When I run this, the action is not performed

I am making a menu bar but window.innerWidth does not execute the action of collapsing the bar without covering the dashboard, that is, the dashboard is covered by the bar. I try to collapse the bar together with the dashboard, but the bar covers…
0
votes
0 answers

Class is using Angular features but is not decorated. Please add an explicit Angular decorator in Angular 15

When I am writing this export class MyTelInput implements ControlValueAccessor, MatFormFieldControl, OnDestroy { } in Angular 15 version then it gives error that is: Class is using Angular features but is not decorated. Please add an…
0
votes
0 answers

Prevent Angular 15 iframe update browser history

I have an Angular 15 app with an iframe where I render html content from file. Since this content may be changed by user I update src value. This affects browser history stack. I was googling and found here Angular 7 iframe history back button…
LosDavidos
  • 21
  • 6
0
votes
0 answers

Angular 15 + i18next - Property 'languageChanged' in type 'I18NextEvents' is not assignable to the same property in base type 'ITranslationEvents'

I try to implement i18next library for Angular in version 15. For implementation I use "angular-i18next": "^15.0.0-0" and "i18next": "^22.4.6" and below files: .module.ts file: import {NgModule} from '@angular/core'; import {I18NextModule} from…
Hiorii
  • 1
  • 1
  • 4
0
votes
0 answers

How to add Cordova plugin in angular library to reuse in multiple ionic apps?

I have created a multi-app ionic project. Also, added angular libraries to be reused in multiple ionic apps. I managed to setup the libraries to have ionic components and pages and can be reused successfully in multiple ionic applications without…
IBRA
  • 1,502
  • 3
  • 24
  • 56
0
votes
1 answer

error NG8002: Can't bind to 'matDatepicker' since it isn't a known property of 'input'

I am implementing an application using Angular 15. I use Angular Material there. I need to add a date picker and after inserting the code snippet below I'm getting an error. Choose a…
0
votes
0 answers

Angular 15 - Cannot read properties of null (reading 'bindingStartIndex') when adding a dependency in nested package.json

I have migrated my angular app from 14.0.2 -> 15.0.4. And I have the following error in my browser : I have found what is causing this error. It's when I add a dependency (thats relies on Angular) in wrapper1's package.json. project structure …
isy
  • 531
  • 1
  • 12
  • 27
0
votes
2 answers

How to set API path during production build in Angular 15

In Angular 15, There is no environment files so we are using proxy.config file for setting api path for local development but that will not work in production build. Below is the proxy.config.json file. This is my package.json file. is anyone has…
Bhadresh Patel
  • 1,671
  • 17
  • 18
0
votes
1 answer

Angular Material 15 MatSort always undefined

I have an application that's been using MatSort in the table for the last 2 years. Over the last week I updated to version 15 and now I discover that my MatSort is always undefined in the AfterViewInit event. I have confirmed that the MatSortModule…
jhorton
  • 1,019
  • 3
  • 17
  • 36
0
votes
0 answers

jar-archive corrupted after download

I have set up a simple front- & backend project for browsing & downloading files. My backend server is written in java and the frontend is an angular application. The backend has a path to a directory which it exposes to the frontend. The use can…
0
votes
1 answer

Angular 15: call a function every time a value changes

our professor asks us to build a simple e-commerce app with the following components: customers, orders, menu (a navbar) and a cart. We need to display the orders in the front-end depending on the selected customer who is selected from a dropdown…