我正在使用谷歌幻灯片 API 来创建 powerpoint 演示文稿。其他所需功能包括 - 导出为 PDF 导出为 HTML 导出为文档/图像格式。
Slides API有没有给出的方法?
我有以下 html(示例)
<div ng-controller='ctrl-1'>
<form>
<input type='text' ng-model='name'/>
</form>
</div>
Run Code Online (Sandbox Code Playgroud)
和 js 文件为:
app.controller('ctrl-1',function($scope){
$scope.name = 'john';
});
app.controller('ctrl-2',function($scope){
/*
Here I want to change value of 'name' field which is in 'ctrl-1'
*/
});
Run Code Online (Sandbox Code Playgroud)
如何在 angular js 中实现这一点?