Category "angular"

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

How to make existing angular application "fully strict" step by step?

I have an existing Angular Application that started development at the time of Angular 4, now it's on Angular 12. But at the time of development, the strict mod

Can't import the named export 'Directive' from non EcmaScript module (only default export is available)

this is a ionic angular project that i'm working on, i'm using ng-lazyload-image plugin Link. when i start compiling it showing errors like this. Error: ./node_

Angular 13 routing not working showing new route component below previous comopnent

In Instructions component when we click on Submit routes it to Confirmation component. But on UI it is showing instructions component and confirmation componen

access DOCUMENT in useFactory

I want to inject @Inject(DOCUMENT) in factory. How to inject it since it is not service therefor I can't add it in deps. // import { DOCUMENT } from '@angular/c

@nestjs/swagger cant be used with angular

We have a monorepo with nestjs, angular and libs. In one of those libs we defined all DTOs and some of them use mapped-types from @nestjs/swagger like OmitType

Right align buttons inside flex

How can I align the buttons on the right hand side to the right (the right side of the orange box in the image)? [Visual of the button element not aligned to th

put request Angular to update entire object

I trying to do a put request to update a big object. The object is structured like this: Budget The dailygoal with the date and the percentage is displayed like

How can I launch the appstore from my web app in smart tv?

Launch the app store for smart TV tizen I am trying to launch the app store from my current tizen TV application. I am using angular and making my app a web apl

Angular component does not re-initialize when only the path variable changes in URL during routing

I have the below code in the constructor of my component this.performanceKpaId = parseInt( this.route.snapshot.paramMap.get('id') ?? '0', 10 ); // get enti

Shared external Angular Library with single-spa

Is there a way to use an angular library as an alternative to single-spa utility module, imported with systemjs in the root application? I want to create a serv

Angular Syncfusion schedule cannot invoke an object which is possibly 'undefined

I am working on Angular Syncfusion for allowing user to show and book appoinments and following below link https://ej2.syncfusion.com/angular/documentation/sche

listen EACCES: permission denied 127.0.0.1:80 - macOS

I need to serve an angular app with specific --host flag and --port 80. I added the host to my /etc/hosts file but when i use command "ng serve --host local.xxx

TS2304 TypeScript (TS) Cannot find name

I am getting this error about Cannot find name 'Record' is that a package I need to install for this class? Severity Code Description File Project Line

How do I wait for users to click on certain buttons in component, then return a value from that in a function depending on which button was pressed?

I have an overlay component that appears when a user clicks on certain things in my page, and in this overlay it gives a warning and 2 buttons, one for yes and

What causes the difference between angular 8 and angular 13?

I have a piece of code of custom component. Here are related code: @Component({ selector: 'scrs-tab-container', template: `<ng-contnet></ngcontent>`

Jest test error: ...subscribe is not a function

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