Announcement
Collapse
No announcement yet.
X
-
That actually wasn't our recommendation - our recommendation was to load angular.js normally - see above.
-
no luck
Hello,
I tried to take the suggestion so did the following
htmlArea.setEvalScriptBlocks(true);
and changed from HTMLPane to HTMLFlow type.
I left the script src = as it was, as I was not clear what to change (or if it was fine as I suggested).
I changed the ng-app back to the <html ng-app> as thinking it was my own html page in the htmlflow.
So what did I miss to get this hello to work?
Evan
Leave a comment:
-
why
Hello,
Well if I have a backend that has lots of data points that are being updated on a html page. Then angular seems like a nice way to get dual binding. Not something I can see how to do in smart gwt.
Evan
Leave a comment:
-
In the default contentsType:"fragment" mode, you need to enable HTMLFlow.evalScriptBlocks if you want inline JavaScript executed.
This is not *quite* like a normal web page. We wouldn't recommend it for developing anything substantial. We're not sure why you would bother with angular.js at all, but if you have a reason to use it, you'd want to load it normally via <script src=>, and try not to rely on embedding <script> in the HTML you use it with.
Leave a comment:
-
angular.js
Hello,
I wanted to try out angular javascript.
I thought I would create an HTMLPane and set it to some html
I created a folder with the javascript and the html page and pane.
I am able to see the html, but the javascript does not run.
Any ideas if this is possible?
Or why it does not work?
Attached is the angular stuff I tried and my test code.
My pane is
HTMLPane htmlArea = new HTMLPane();
htmlArea.setHeight100();
htmlArea.setWidth100();
htmlArea.setContentsURL("html/test.html");
this.addMember(htmlArea);
I downloaded the angular.min.js file from
http://angularjs.org/
I am using smart gwt
** Smart GWT Forum
I am using the following
SmartClient Version: v8.3p_2013-04-19/PowerEdition Deployment (built 2013-04-19)
Some of the double binding effect of angular is a must for what I have in mind. And serving up HTML with this is also required.
However, as I have used Smart GWT I hoped to use both. Just putting the angular stuff in the HTMLPane.
Thanks,
EvanAttached FilesTags: None
Leave a comment: