I’m trying to create my first app with AngularJS. It looks neat, but there’s a lot of abstraction, and I’m just curious if anyone has advice on the most idiomatic way to use the angular methodology to update visuals created with d3js.
Thanks,
bp
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In order to make angular and other frameworks play nice is to wrap the “other” frameworks using directives.
http://docs.angularjs.org/guide/directive
The thing that you want to do is to tell angular when data has been updated by the “other” frameworks. If angular doesn’t need to know, then your task is simpler.
Here is an example that works with SVG, its awesome
http://sullerandras.github.com/SVG-Sequence-Diagram/
Here is an example that wraps TinyMCE
http://jsfiddle.net/programmieraffe/kjsEV/