Angularjs: how to do javascript based modification in DOM -


i have small angular project, , modify view based on model modifications. however, not handled "ng-xxx" directives specific javascript code.

what pattern this?

i have 2 options:

  • call in controller global javascript method (which bad!)
  • watch in main page variable change , update view accordingly (a little bit better)

i try display part of model on openstreetmap view, question not specific osm (or leaflet)


Comments

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -