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 - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -