2,076 questions
0 votes
2 answers
43 views
Angular login page result not updated immediately after login action
My LoginComponent: import { Component } from '@angular/core'; import { HttpClient } from '@angular/common/http'; @Component({ selector: 'app-login', standalone: false, templateUrl: './login....
1 vote
1 answer
53 views
Checking if app-custom exits in Angular html template
I think I have a knot in my brain, it can't be that difficult. I have an Angular component and it is called in my app.html <app-custom></app-custom> and if app-custom does not exist, a ...
1 vote
1 answer
107 views
Angular 19: TypeScript Error with Conditional Type Checking in Dynamic Table Component
I have a dynamic table component in Angular 19, which is built using a TableConfig object. This configuration creates the table's structure, including headers, columns, and rows. The rows property of ...
1 vote
1 answer
199 views
Why are components' imports not loading in Angular 19 SSR?
I've run into a problem that my header's imports are not loaded properly in SSR. In my Angular 19 application the app.component.html includes a static <app-header> component that should exist on ...
2 votes
1 answer
70 views
Angular Youtube - onReady
I am trying to wrap Angular/Youtube component, described here. This stackblitz is the result. The problem here is that <youtube-player #musicPlayer [videoId]="extractVideoId(videoId)" ...
2 votes
1 answer
39 views
How do I make a child component not render the extra <app-child> node?
I have a parent component whose template is basically this: <table> <thead> <tr> <th>Data 1</th> <th>Data 2</th> </tr> </...
0 votes
2 answers
56 views
Angular 15: Extract a component from a lazy loaded module for dynamic creation
Let's say I have a module with components and services which should only be loaded if a specific feature flag is true. The app.component checks for the feature flag and in its template has a component ...
2 votes
2 answers
655 views
Why does my Angular dropdown update selection even when the parent does not store the selected value?
I have an Angular dropdown component (CustomDropdownComponent) that receives a list of options and a selected value from its parent component via @Input(). The parent also listens for selection ...
1 vote
2 answers
151 views
How to apply component CSS to dynamically injected HTML from an API?
I am receiving an HTML string from an API response and need to render it inside my Angular component while keeping the component's CSS styles applied. What I have tried: Using [innerHTML], but the ...
1 vote
2 answers
76 views
Why don't my angular components realise that it's part of a module?
Disclaimer: I may be wrong about my understanding of this seeing as I have only been using Angular for little over a year (Angular 16.0.0). Code I have this component (SidebarComponent): @Component({ ...
0 votes
3 answers
615 views
Updating of an Angular computed signal occurs only once but not for future dependencies update
I'm trying to filter an array based on the value of a signal , I think computed signal is the best option for this purpose. My goal is to show only the results that match (via a custom filtering ...
0 votes
1 answer
110 views
How to update a component in Angular using a backend request, without refreshing the page?
I want to update my heart icon, which bound to every product, to add to favourites. <i class="fa-regular fa-heart" *ngIf="!isFavourite"></i> <i class="fa-...
0 votes
0 answers
15 views
Get injected attribute directive from another directive
I've have two nested custom directives on third-party components. I can't find a way to inject or access the actual directive (with custom functions/logic) instead of the base component. Here is a ...
1 vote
1 answer
70 views
Angular Components Structure in Divs
I am questioning myself of whether or not to structure my Angular components in sub divs, to make the html better. I do have a main page and a overview component. Is it good practices in Angular to ...
1 vote
1 answer
71 views
Access child component from dynamically created component - Angular 12
Inside global-component I have method for dynamically creating component const comFactory = this.resolver.resolveComponentFactory(ParentComponent); const component: any = this.componentContainer....