如何使用Angular.js在谷歌Apps脚本提供HTML网站? [英] How can I use Angular.js in a Google Apps Script served HTML site?

查看:101
本文介绍了如何使用Angular.js在谷歌Apps脚本提供HTML网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能包括,用Angular.js作为一个Web应用程序的一部分使用HtmlService在谷歌Apps脚本送达或将卡哈清理出来​​?

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?

此外,才有可能给Google Apps脚本本身?

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

推荐答案

您可以用角与下面你appscript文件更改。

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

var ui = HtmlService.createHtmlOutputFromFile('myPage')
  .setTitle('My Title');
ui.setSandboxMode(HtmlService.SandboxMode.IFRAME);

这篇关于如何使用Angular.js在谷歌Apps脚本提供HTML网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆