OfficeJS,Angular 4和Windows的原生Outlook 2016

时间:2017-06-27 13:41:36

标签: angular outlook outlook-addin office-js

尝试在Outlook 2016 for Windows中打开Outlook加载项时出现错误。

Error: Office.js has not been fully loaded yet. Please try again later or make sure to add your initialzation code on the Office.initisalize function

我已按照gist https://github.com/OfficeDev/office-js-docs/blob/master/docs/develop/add-ins-with-angular2.md中列出的建议无效。

我尝试在浏览器和Outlook 2016 for Mac中使用的main.ts初始化Office:

Office.initialize = reason => {
    launch();
};

function launch() {

  if (environment.production) {
    enableProdMode();
  }

  const platform = platformBrowserDynamic();
  platform.bootstrapModule(AppModule);
}

有什么想法吗?

0 个答案:

没有答案