Google Authentication/Gapi: Uncaught TypeError: Cannot read property 'postMessage' of null
问题 Good day to everyone! I'm creating a web app using Angular.js 1.5 , Google Authentication (gapi) and UI router . My main goal is to initialize GoogleUser at the first place, using resolve method from the main abstract state: $stateProvider .state('app', { url:'/', templateUrl: 'layout/app-view.html', resolve: { googleAuth: function (User:UserService) { return User.initCurrent(); } } }); which at that point works pretty well - it injects UserService , and call its initCurrent() method, that