mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Rollback raw thing
This commit is contained in:
@@ -2,14 +2,15 @@
|
||||
import {For, Component, View, Parent, bootstrap} from 'angular2/angular2'
|
||||
import {FormBuilder, Validators, FormDirectives, ControlGroup} from 'angular2/forms';
|
||||
import {Log} from 'ionic/util'
|
||||
import {Router, List, Item, Nav ,NavController, Button, Input, Tabs, Tab, Content, Aside} from 'ionic/ionic'
|
||||
import {Router, List, Item, Nav, NavController, Toolbar, ToolbarTitle,
|
||||
Button, Input, Tabs, Tab, Content, Aside} from 'ionic/ionic'
|
||||
|
||||
@Component({
|
||||
selector: 'login-page'
|
||||
})
|
||||
@View({
|
||||
templateUrl: 'pages/login.html',
|
||||
directives: [FormDirectives, Button, Input]
|
||||
directives: [FormDirectives, Button, Input, Content, Toolbar, ToolbarTitle]
|
||||
})
|
||||
export class LoginPage {
|
||||
constructor( @Parent() viewport: NavController ) { //, fb: FormBuilder ) {
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
<div>
|
||||
<header *ion-toolbar>
|
||||
<h1 class="toolbar-title">
|
||||
Login
|
||||
</h1>
|
||||
</header>
|
||||
<ion-content class="padding">
|
||||
<form (^submit)="doLogin($event)" [control-group]="loginForm">
|
||||
<ion-input>
|
||||
<input control="email" type="email" placeholder="Your email">
|
||||
@@ -11,4 +16,4 @@
|
||||
<button ion-button primary block (click)="doSignup()">Create an account</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</ion-content>
|
||||
|
||||
Reference in New Issue
Block a user