Skip to main content
1 vote
0 answers
103 views

Create Dropdown menu with Angular Signal with default value and an extra option

I am not sure what's the proper way to set up the drop drop down options. the code I have is not working. please help. this is angular 18. I have an array that is a computed signal, this is the ...
STH's user avatar
  • 123
0 votes
1 answer
1k views

Angular 11, how to bind a new object in template, to component

When a user loads a different selection (object) from the option drop-down list, I would like to get the NEW object returned in the (change) function. But, it is returning the default object every ...
TMR's user avatar
  • 87
0 votes
0 answers
282 views

Angular Bind variable to a hashmap with value of type string

I am trying to bind a variable which contains the date and time to a key value pair within Component A. I can see in the console the value of currentDate, but when I try to bind the variable to the ...
Alan's user avatar
  • 69
1 vote
0 answers
146 views

what is the meaning of "after Angular first displays the data-bound properties"

I'm following the Angular documentation about the ngOnInit lifecycle until it gets really confused by saying "after Angular first displays the data-bound properties". Btw, you can check the ...
Hunq Vux's user avatar
2 votes
2 answers
2k views

How do I get a string value from service in an Angular component?

I am trying to get the value of a string variable explanationText from my QuizService to display in my di-quiz component template using data-binding. console.log is showing undefined for ...
integral100x's user avatar
0 votes
1 answer
594 views

How to access updated element after changing it using one way binding

I want to update content of a div using string interpolation and then access some properties of that div element immediately. how do i access an updated element? In the below code snippet, how do i ...
barley's user avatar
  • 306
1 vote
2 answers
601 views

Angular - Uncaught Error: Cannot assign to a reference or variable

I have an Angular 8 app. app.component.html <div> <label class="form-check-label f-14"> <input type="checkbox" class="form-check-input" name="isAgree" [(ngModel)]="...
Kgn-web's user avatar
  • 7,645
3 votes
1 answer
376 views

Inserting HTML (with angular 2 directives) from the server into the DOM

I have ~2,000 lines of HTML code that I can retrieve from my Java server. This HTML code also has angular directives inside of it, such as ngIf* and (click) and [ngClass]. When I try to display that ...
Mike K.'s user avatar
  • 616
-1 votes
1 answer
226 views

How to bind variable value declared in an Angular component as a (click) function name?

onClick function name want it to pass from backend
Urvesh Dhangar's user avatar
2 votes
2 answers
1k views

Angular 2+ One way data binding from view target to data source

In my angular application, I have a element that allows a user to set a description value. I want that value to be acceccable in the Data Source. I got this to work using 2-way data binding, as shown ...
nmg49's user avatar
  • 1,406
1 vote
0 answers
390 views

Data binding inside ngFor

I am working on a project, where I am getting questions from backend with multiple options. Now in one of question type - Multi choice grid question, we are trying to create view like this for that in ...
BhargavG's user avatar
  • 906
0 votes
1 answer
1k views

ion-datetime bind to epoch

I have a model that requires the date/time as milliseconds in Unix Epoch format. I have tried using the Moment interface, Date | numeric as type and I can't seem to get it right. I want the control ...
stephen's user avatar
  • 385
0 votes
1 answer
128 views

Angular 5 Binding

I am new to angular 5 and I am working on a task to calculate number of cars based on number of bags and passengers as each car have a specific capacity for each of them. So the user enter the both ...
Bassem's user avatar
  • 43
0 votes
1 answer
183 views

Angular component tag bind method

I am trying to set the width and height of a component alongside its initial declaration in a parent component's html. Having the following component tag (in the parent's html): <app-ipe-artboard [...
Youp Bernoulli's user avatar
0 votes
1 answer
141 views

How to set spaces between binding tags in HTML code style in InteliJ for TypeScript elements?

Instead of having the default <h1>{{typeScriptVar}}</h1> when binding elements in Angular, I want to set it to <h1>{{ typeScriptVar }}</h1> when I press the format code ...
Kakao Kakaovski's user avatar

15 30 50 per page