Service events do not affect template correctly
问题 Auth in google, use Angular2. First, in HTML, I load google api library: //index.html //... <script> var googleApiClientReady = function() { ng2Gauth.googleApiClientReady(gapi); } </script> <script src="https://apis.google.com/js/client.js?onload=googleApiClientReady"></script> //... After in Angular2 service I handle google auth data and emit event to inform component if google api is ready: //google auth service .ts import {Injectable, EventEmitter} from 'angular2/core'; @Injectable()