ample sdk, Protovis.js & angular.js

146 views
Skip to first unread message

Alex Nertus

unread,
Apr 25, 2012, 8:35:00 AM4/25/12
to AngularJS
Hi there,
I have to implement ample sdk or protovis charts into my app. But blow
libs have a strange method to build charts: insert their type code for
example:
<script type="application/ample+xml" xmlns:c="http://www.amplesdk.com/
ns/chart">{your code here}</script>

I add this code into new view and it's doesn't work after page
loading. It works only if you add code into index.html. In other words
it doesn't work with async load.

how can resolve this issue?
Thanks!

Peter Bacon Darwin

unread,
Apr 25, 2012, 8:45:12 AM4/25/12
to ang...@googlegroups.com
I don't believe that script blocks in partials are executed.


--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/angular?hl=en.


Alex Nertus

unread,
Apr 25, 2012, 9:15:35 AM4/25/12
to AngularJS
they don't

On Apr 25, 3:45 pm, Peter Bacon Darwin <p...@bacondarwin.com> wrote:
> I don't believe that script blocks in partials are executed.
>

Alex Nertus

unread,
Apr 25, 2012, 9:29:45 AM4/25/12
to AngularJS
any variants?

Vojta Jína

unread,
Apr 29, 2012, 4:32:42 AM4/29/12
to ang...@googlegroups.com
I believe if you use real jQuery, it will execute the scripts.

Or you can write a directive for it - there is a $includeContentLoaded
event being fired when ng-include loads and compiles the content, so
just find scripts there and evaluate them.

V.
Reply all
Reply to author
Forward
0 new messages