5

Is it possible to include and use Angular.js as part of a web app served using HtmlService in Google Apps Script or will caja sanitise it out?

Additionally will it be possible to use Angular within the HtmlService templating method within Apps Script itself?

1
  • I have tried - it seems crippled - Corey's Answer seems to confirm it. Commented Oct 5, 2012 at 7:08

2 Answers 2

4

You can use angular with following change in your appscript file.

var ui = HtmlService.createHtmlOutputFromFile('myPage')
  .setTitle('My Title');
ui.setSandboxMode(HtmlService.SandboxMode.IFRAME);
Sign up to request clarification or add additional context in comments.

2 Comments

Indeed. As per the comment I added to my own question.
This is not currently working for me. Let me know if you need anything else. How is your html ? could you share it?
4

This is not currently possible, although it may be supported in the future.

3 Comments

There is actually an issue requesting this feature.
And now it is possible under the IFRAME sandbox
I have been using this in production for several months now. It works fine.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.