How can I use Angular.js in a Google Apps Script s

2019-02-02 18:01发布

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?

2条回答
放荡不羁爱自由
2楼-- · 2019-02-02 18:17

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

查看更多
何必那么认真
3楼-- · 2019-02-02 18:18

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

var ui = HtmlService.createHtmlOutputFromFile('myPage')
  .setTitle('My Title');
ui.setSandboxMode(HtmlService.SandboxMode.IFRAME);
查看更多
登录 后发表回答