Angular.js with jQuery Sparklines

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 00:46:27

问题


Noob question: I'm trying out the new Angular.js framework but can't seem to get my sparklines to display on my partials. The arrays I want graphed do display in text.

It seems to be a problem with when the string loads on the page and when Sparklines are called. I'm calling the jQuery sparklines in the <head>.

How do I get these to display in an ng-repeat?


回答1:


Check out the JQuery wrapper from the AngularUI project:

https://github.com/angular-ui/angular-ui/blob/master/modules/directives/jq/jq.js

The issue is with plugins that change the DOM without alerting AngularJS to the change.



来源:https://stackoverflow.com/questions/12182214/angular-js-with-jquery-sparklines

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!