Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Tutorial App part 5 - tab-account.html
<ion-view view-title="Account">
<ion-content class="padding">
<button class="button button-block button-balanced" on-touch="showLogin()" ng-show="!loginSuccess">Login</button>
<p ng-show="!loginSuccess">Haven't accout yet? Register!</p>
<button class="button button-block button-positive" on-touch="openRegister()" ng-show="!loginSuccess">Register</button>
<div class="register" ng-controller="RegisterCtrl"></div>
<div class="login" ng-controller="LoginCtrl"></div>
<div class="card" ng-show="loginSuccess">
<div class="item item-avatar">
<img ng-src="{{userData.picture.url}}">
<h2>{{ | uppercase}}</h2>
<p>Email: {{userData.mail}}</p>
<button class="button button-assertive" on-touch="doLogout()" ng-show="loginSuccess">Logout</button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.