Questions tagged [angular14]

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

536 questions
-1
votes
1 answer

In Angular 14, is it possible to apply an interceptor to objects of an abstract type?

I'm using Angular 14. I have an abstract model export class AbstractMyModel { constructor(public commonProperty: string) { } } from which other models will extend. Is there a way to write an interceptor (or other similar function) that…
Dave
  • 15,639
  • 133
  • 442
  • 830
-1
votes
1 answer

angular material dialog appears below, instead of on top of current window

I am facing this issue. I am trying to open a modal dialog, in angular material. Here is the code: html:
santubangalore
  • 796
  • 1
  • 12
  • 25
-1
votes
1 answer

Where do I put code to initialize before custom module initialization in Angular 14?

I'm using ngrx/data 14 and Angular 14. I have built a custom module that I load in my app.module.ts file like so @NgModule({ declarations: [ AppComponent ], imports: [ ... AppRoutingModule, MyCustomModule, ... ], …
Dave
  • 15,639
  • 133
  • 442
  • 830
-1
votes
1 answer

angular14 cli test config to pass karma conf file

How to pass karma config file in angular cli command to run unit test in angular 14. I am trying to apps --karmaConfig=karma.ci.js but its not working
Aniruddha Das
  • 20,520
  • 23
  • 96
  • 132
-1
votes
1 answer

Angular 14 - Remove child component tag from dom

Using Angular 14 I have the following button component button.component.html
-1
votes
1 answer

In PrimeNG, how do I set a border color for the p-calendar component when no data is entered?

I'm using Angular 14 and PrimeNG 14. I have a p-calendar component that I would like to style with a red border color if the user has not entered a value. I have
Dave
  • 15,639
  • 133
  • 442
  • 830
-1
votes
1 answer

Constructed stylesheet override :host css in ionic framework

I want to override the inset css in host styling in ionic style but it's not overriding, please look at the following code. existing code is :host { inset: 0px; position: absolute; } required code :host { inset: unset; …
Shahuraj
  • 1
  • 1
-1
votes
1 answer

ionic capacitor run android device failed not showing data

I just initialized a mobile app with ionic when I test on browser everything works fine but when I test on mobile the app shows white screen command I initialize the project ionic start projectname blank --type=angular then I add the android…
Nguyen Anh
  • 150
  • 5
-1
votes
1 answer

How do I get horizontal and vertical stretch in Angular/PrimeNG 14?

I need a grid in Angular/Primeng 14 that stretches both horizontally and vertically. I started with this stackblitz which is broken under Angular 14. Horizontal stretch is works, but to get vertical stretch I've resorted to this from years ago. …
Dean Schulze
  • 9,633
  • 24
  • 100
  • 165
-1
votes
1 answer

I am trying to upgrade angular 12 to 14 but I am getting this issue in GitLab pipeline ng-toolkit/universal

npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: @ng-toolkit/universal@8.0.3 npm ERR! Found: @angular/common@14.1.0 npm ERR! node_modules/@angular/common npm ERR! @angular/common@"^14.1.0" from the…
-1
votes
1 answer

I want it to open automatically in my matmenu when the page is opened

I want my material menu to open automatically when my page is opened, but because I am not click, "trigger" is undefined TypeError: Cannot read properties of undefined (reading 'openMenu') @ViewChild('menuTrigger') trigger; ngOnInit() { …
-1
votes
1 answer

An unknown error comes with ngrx and angular 14

An unknown error is showing with ngrx and angular. When i use store.select of ngrx in my component with state variable. than it is giving an unknown error. component file @Component({ selector: 'app-all-user', templateUrl:…
Jhon Wick
  • 11
  • 4
-1
votes
2 answers

How to capture closed event of mat autocomplete in angular material

Trying to get the closed event of mat autocomplete but getting undefined. I do not know why i am getting undefined. If anyone knows please help to find the solution. app.component.html:
-1
votes
1 answer

Fullcalendar and Angular 14 - accessing component functions

This is probably something simple, anyway for some reason I cannot access my component functions from fullcalendar configuration object. I followed the official doc on how to setup fullcalendar in Angular 14 :…
Nite
  • 323
  • 1
  • 4
  • 12
-1
votes
1 answer

How to a inject service from a feature module into another service in Angular

I have a feature module named MyModule which provides a service named ModalsService, I want to inject this ModalsService into another service named ApiService which belongs to my main application and is marked as being provided in the…
Matt
  • 699
  • 5
  • 15
1 2 3
35
36