AngularJS how to bind data with SVG widget

前端 未结 2 459
天命终不由人
天命终不由人 2021-02-06 02:49

I know that this is usually not the way to use AngularJS but I was wondering if what I want to achieve is doable with AngularJS. If this is not the recommended way could you ple

2条回答
  •  余生分开走
    2021-02-06 03:25

    You should look at creating an angularjs directive that wraps these objects. When data that is bound to angular scope changes, you need to do a scope.$apply(). This is a simplistic answer, take a look at the http://docs.angularjs.org/guide/directive doc.

提交回复
热议问题