For questions regarding Angular specific to version 14. Please include all relevant tags on your question; e.g., [Angular], [TypeScript], etc.
Questions tagged [angular14]
536 questions
0
votes
0 answers
How to add import CSS to a component .css file in Angular 14
I am using ng-select component. It provides the styling via @import "~@ng-select/ng-select/themes/default.theme.css";.
I have added it to the wrapper component's .css but it has no effect.
It works only when I add it to the global css.
So the…

Sawaid
- 77
- 1
- 2
- 11
0
votes
0 answers
Angular use UrlMatcher to route to different components for the same route
I am having a lazy loaded module which should load different child routes depending on a condition. I tried to the following, but now some child components are not shown:
const routes: Routes = [
{
matcher: isAdminMatcher,
component:…

Julia
- 137
- 3
- 13
0
votes
0 answers
Angular 14 how to format number input in ibm carbon number input with commas
I am using Angular14 with ibm carbon design system.

Mukil Deepthi
- 6,072
- 13
- 71
- 156
0
votes
2 answers
Angular 14: App not routing even though path changes in the URL
I am setting up a basic angular website and my routing does not appear to be working.
I have a app.component.html page (acting currently as my Home page):

Talktomegoose
- 83
- 6
0
votes
0 answers
Hey Folks, I am trying to update Angular 9 to 14 but facing some issue on localhost, it says NullInjectorError: No provider for Document
Application is compiling successfully but cant see Dashboard because of this error on localhost, trying to figure out the issue where it is coming exactly but couldnt, could please some one help with this
enter image description here

Praveen
- 1
0
votes
0 answers
Angular 14: error NG8001: 'app-horizontal-bar-chart' is not a known element:
Can someone help me with this error? I have seen other possible solutions to solve this error but they have not worked.
Error: src/app/pages/home/home.component.html:5:9 - error NG8001: 'app-horizontal-bar-chart' is not a known element:
If…
0
votes
1 answer
Angular server side rendering dynamic content not showing in page source
I'm using angular universal for server side rendering for SEO. I created html like below. In this html, "Hello" is static content and "World" is coming from rest service dynamically. I can see "Hello World" in browser. But, when I enter view page…

realist
- 2,155
- 12
- 38
- 77
0
votes
0 answers
Angular 14: Card not displaying, when I used ngIf and ngFor
Please help. I can't somehow fix this.
when i put ngIf and ngfor, card-body is gone
check 2nd image
enter image description here
enter image description here

Migamii
- 1
- 1
0
votes
0 answers
Angular14 how to get each item, which is an array, of an array
I have following structure
1 questionnaire got many questionSection
1 questionSection got many questions
i want to get all the questions. I tried following
const allQuestions: Question[] = [];
questionSections.forEach(section => {
…

Mukil Deepthi
- 6,072
- 13
- 71
- 156
0
votes
0 answers
What are the difference between ngforeach and ngforof in angular 14
I am trying to find the difference between ngforeach and ngforof, But not able to find out the answer. If someone know please explain clearly.

EMahan K
- 417
- 1
- 19
0
votes
1 answer
In Angular 14, how do I include a child component in a standalone component?
I'm using Angular 14. I have a standalone component in which I want to include a child component from another module. The standalone component looks like
and its service file is
@Component({
…

Dave
- 15,639
- 133
- 442
- 830
0
votes
0 answers
Angular Firestore - Display the data of the document id (View Contact
How can I display all the data on document, i got the id but i cant display the data
this is the service:
getContact(){
return this.firestore.doc('contact').get()
}
this is the view-contact component:
export class…

nono
- 1
0
votes
0 answers
NullInjectorError: R3InjectorError(i)[i -> N -> N -> N]: NullInjectorError: No provider for N! in Angular 14
I had migrate my angular 7 to 14 while run ng serve. run successfully but in console throw error.Please suggest any solution for that.
0
votes
1 answer
Service injection and accessing data in Angular
I am quite new to angular, and whilst what I am doing now works, not sure if I am following best practices. Scenario:
Employee service: handles all the calls to the backend (getEmployees, getEmployee(id), saveEmployee(employee))
Employees…

vojkd
- 9
- 2
0
votes
0 answers
In Angular 14 I am having multiple components on click of a button (Exists in component A) then it need to open B.component.html in a seperate window
In Angular 14 I am having multiple components where on click of a button (Which exists in component A) then it needs to open B.component.html in a separate new window tab.
Note: Only B component HTML need to load in a separate new window (Not as a…

Tarun
- 1
- 3