Questions tagged [two-way-binding]

351 questions
0
votes
1 answer

Can PubSub be reasonably used to imitate two-way binding?

One of the most convenient things about AngularJS was the two-way binding. Would it be advisable to replicate that with a much smaller library like PubSubJS and not use AngularJS? Or, would that create many more events that PubSubJS is intended to…
0
votes
1 answer

Angular change notification on subproperty

I've got a child component in my Angular 5 application that does two-way binding, and the binding is working properly. I'm having a bit of an issue with knowing about the change though in the parent controller. In the parent I use the child…
Gargoyle
  • 9,590
  • 16
  • 80
  • 145
0
votes
0 answers

How to two-way bind a form value to a nested angular model

I am new to angular or front-end development for that matter. I am trying to two-way bind a form value to a 'nested array fields' of angular model. Unfortunately, it doesn't work and returns undefined or errors. Certainly looks like a blunder to me,…
AshV
  • 1
0
votes
3 answers

Bind options value to ng-model in angularjs

I'm working on a project, and I need to bind the options value to object key's in such a manner that, on selecting an option, it gives 1, else other variables remain 0. My HTML Code:-