wenn ich versuche, öffnen Sie ein Popup in Outlook.Ich bekomme Office.Context.mailbox undefined in Pop-up-Controller.Aber ich habe Office-Objekt in Controller.Bitte schlagen Sie vor. Code ist unteroffice.context.mailbox ist undefined
(function() {
'use strict';
angular.module('wpoffice')
.component('externalTrack',
templateUrl: 'app/components/externalTrack/external-track_template.html',
controller: ExternalTrackController,
bindings: {}
});
/** ngInject*/
function ExternalTrackController($rootScope, $scope, $timeout, appData, ngNotify,$q,trackingService) {
var self = this;
self.$onInit = activate;
function activate() {
console.log(Office)
console.log(Office.context.mailbox);
}
}
})();
Hast du "Office.initialize" in der Pop-up-Seite aufrufen? –
Ja, ich habe Büro in Pop-up-Seite initialisiert. – Leo