Questions about Angular version 11, the web framework from Google. Use this tag for Angular questions which are specific to only version 11. Use tag Angular for any Angular questions which are not specific to an individual version
Questions tagged [angular11]
700 questions
5
votes
0 answers
angular - how to use ngx-translate with shared module and lazy loading modules on Angular11 app
i'm working on an Angular project. I've firstly add translaService in the project and everything were good. The language were shared by all components correctly.
When i've enable the lazy loading, i have divided my project by modules (this was…

Samuel K
- 93
- 9
5
votes
3 answers
"inject() must be called from an injection context" when importing angular app using module federation architecture
I am trying to implement the micro-frontend concept in angular using webpack5 module federation by following this example Module federation with angular, but i am facing this error
I tried the solutions provided in this answer inject() must be…

Salman Sayyed
- 85
- 1
- 9
4
votes
2 answers
Angular 11 switchmap not working after catch error
I have two dropdowns in my angular app. Second one is populated based on first dropdown value. I am using switchmap. It works fine as long as there is no error. As soon there is no values to populate second dropdown and there is an error, subsequent…

Mukil Deepthi
- 6,072
- 13
- 71
- 156
4
votes
2 answers
Angular 10/11 adding ngx-sharebuttons getting "export 'ɵɵFactoryTarget' (imported as 'i0') was not found in '@angular/core'
I am trying to add social media share buttons on my angular app - so i have seen this ngx-sharebuttons which seems to provide, what i would like to achieve.
However i cannot build my angular application if it use
npm i ngx-sharebuttons…

Dev Fh
- 586
- 7
- 18
4
votes
1 answer
Angular reactive forms: sync multiple inputs with a single formControlName
I'm building a reactive form in Angular 11. It's split up across multiple divs, and the project owner wants a few repeated inputs in each of those divs so that a user can edit an input for some field A, and all of the divs' inputs for field A will…

JellicleCat
- 28,480
- 24
- 109
- 162
4
votes
0 answers
Angular 11 compilation stuck on “Generating browser application bundles (phase: building)”
Tried replacing all code files with older ones which were working but nothing helped
This is what's happening
Anybody able to overcome this??

lakshit devgun
- 41
- 2
4
votes
1 answer
Upgrade angular 5 to angular 11
I have an app that is running on angular 5.2. It uses Angular Material and PrimeNG as well. I went to https://update.angular.io/?l=3&v=5.2-11.0 and it shows all the updates that need to be done, but there is a warning that they do not recommend…

tigger tigger
- 109
- 2
- 9
4
votes
2 answers
angular useFactory return async Function in module
I am trying to figure out how to use useFactory as an async function in Angular 11. Right now I have this:
import { ApolloClientOptions } from 'apollo-client';
import { FirebaseService } from './firebase.service';
// other imports here...
export…

Jonathan
- 3,893
- 5
- 46
- 77
4
votes
6 answers
Angular 11 tsconfig Path Aliases not Recognized
I am working with Angular 11 and trying to use short imports like import {smthg} from '@common' instead of import {smthg} from '../../../common'
But I always get errors in IDEA: TS2307: Cannot find module '@common' or its corresponding type…

kerm
- 653
- 1
- 5
- 15
3
votes
0 answers
Integrating Play Integrity API in Ionic 5 Cordova app to detect rooted devices
I am developing an Ionic 5 app with Cordova and Angular 11, and I am currently using the SafetyNet Google API to detect rooted devices. However, I encountered an issue where the security check was bypassed when users utilized the Magisk Manager app…

Mustafa Shakaroun
- 153
- 1
- 7
3
votes
0 answers
Deprecation warning createNodeArray since v4.0.0
Deprecation array warning: 'createNodeArray" has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory’ or the 'factory’ supplied by your transformation context instead.
Getting this error on nom start after migrating existing…

user20060977
- 31
- 3
3
votes
2 answers
File saver is deprecated. How to resolve this issue from SonarQube
Working on filesaver, while running SONAR QUBE it shows " 'fileSaver' is deprecated. use { autoBom: false } as the third argument "
this.http.get(`getTemplate/${doc.id}`, { responseType: 'blob' }).subscribe(
(data: any) => {
…

hanu saikrishna
- 33
- 1
- 6
3
votes
3 answers
Redirect to external Route in Angular
I am new to angular. And I am facing the issue to redirect to external route. I want to redirect from my angular app to other MVC application.
Like: www.abc.com/angularapp to www.abc.com/mvcapp
Please help how to redirect to these kind of routes

Anonymous
- 49
- 1
- 5
3
votes
1 answer
Angular11 reactive form on change validate to check for duplicate value
I am using Angular 11 and creating a simple reactive form with a formcontrolname 'name'.
when user types in this field, i need to validate for uniqueness. I tried following but it validates for every time i type something, but want to use…

Mukil Deepthi
- 6,072
- 13
- 71
- 156
3
votes
0 answers
Angular PWA error: Bootstrap call not found
I tried
ng add @angular/pwa
But I got an error saying (additionally, it is not creating/modifying any files in the project)
Bootstrap call not found
Here are the specifications
npm: '7.20.0'
node: '12.18.3',
angular-cli: '11.2.14' (project)
And…

Shardul
- 90
- 1
- 9