8 questions
2
votes
2
answers
224
views
Angular template conditional rendering and signal inputs
I have this input:
customHTMLContent = input<string>()
In my HTML template calling this works:
<p>{{ customHTMLContent }}</p>
And this doesn't:
<p>{{ customHTMLContent() }}&...
2
votes
2
answers
691
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 ...
0
votes
1
answer
93
views
I can't use [ngStyle] in the html tag
<nav class="navbar navbar-expand-lg fixed-top" [ngStyle]="navBg">
Html In the project I developed with Angular, the [ngStyle]="navBg" field in this tag in the HTML ...
1
vote
1
answer
137
views
Trouble binding src attribute of embed tag in Angular
I'm trying to dynamically bind the src attribute of an embed tag in Angular using property binding, but it's not working as expected.
Here's what I've tried:
In my TypeScript file, I have declared a ...
0
votes
0
answers
269
views
Angular Change Detection does not work properly - Angular16
I start working in a new angular project, I find such a weird behavior that we can see throw the following example
ngOnInit() {
setTimeout(() => {
this.test = 100
console.log('...
1
vote
1
answer
134
views
Angular | Generic data table deep level binding using angular material without using angular function
I created a generic table component using angular material. I have metadata for column representation as below.
`tableColumnBinding: TableColumnMetadata[] = [
{
title: 'product.id',
name: 'id',
...
2
votes
1
answer
165
views
Unexpected Angular ExpressionChangedAfterItHasBeenCheckedError in template-driven form
I have a very simple Angular Component as follow:
import { Component } from '@angular/core';
@Component({
selector: 'test-view',
template: `
<div [ngStyle]="{ 'background-color': m....
1
vote
1
answer
69
views
How to bind the the value in Angular
I have below template, how to bind the defaultRelatedGuideUrl from the controller to the template?
[routerLink]="(editMode || readOnly) ? [] : ['/defaultRelatedGuideUrl/', link.slug]">
...