Having followed this tutorial https://github.com/maximepvrt/angular-google-gapi, I successfully integrated Google login using the plugin. However, I encountered an issue when trying to modify the header.
Welcome, {{gdata.getUser().name}}! <a ng-click="logout()" ng-show="{{gdata.getUser().name}}" class="uppercase margin-left-10px">logout</a>
Is there a way to change 'logout' to 'login' when the user is inactive? Thank you in advance.