1

The question is clear I guess. I want to be informed after an ng-model binding is completed and the value is reflected to the DOM element.

I am aware that this can't be done for all ng-model bindings in a document.ready fashion but I would like to be informed at least for a particular element after DOM binding is done.

Why would I need it? To solve this problem with Bootstrap Material Design theme: https://github.com/FezVrasta/bootstrap-material-design/issues/194

Any idea please?

T J
  • 42,762
  • 13
  • 83
  • 138
destan
  • 4,301
  • 3
  • 35
  • 62

1 Answers1

0

you can use a $watch on the variable which is binded to ng-model

work around

$timeout is executed when all the DOM manipulation is done , this assures that changes of your model have been reflected in the DOM

Rishul Matta
  • 3,383
  • 5
  • 23
  • 29
  • `$watch` is used for being notified on change of model's value. I want to be notified whenever the value is binded to DOM element. This doesn't necessarily requires a change of model's value. – destan Nov 12 '14 at 10:43