mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
remove form demo for now
This commit is contained in:
@ -1 +0,0 @@
|
||||
|
@ -1,23 +0,0 @@
|
||||
import {FormBuilder, Validators, formDirectives, ControlGroup} from 'angular2/forms';
|
||||
|
||||
import {App} from 'ionic/ionic';
|
||||
|
||||
|
||||
@App({
|
||||
templateUrl: 'main.html'
|
||||
})
|
||||
class IonicApp {
|
||||
constructor() {
|
||||
var fb = new FormBuilder();
|
||||
this.form = fb.group({
|
||||
email: ['', Validators.required],
|
||||
password: ['', Validators.required],
|
||||
description: ['', Validators.required],
|
||||
note : ['', Validators.required]
|
||||
});
|
||||
}
|
||||
|
||||
deleteClicked() {
|
||||
alert('Deleting');
|
||||
}
|
||||
}
|
@ -1,46 +0,0 @@
|
||||
<ion-content class="padding">
|
||||
<form (^submit)="doSubmit($event)" [control-group]="form">
|
||||
<ion-list inset>
|
||||
<div class="list-header">
|
||||
Your account
|
||||
</div>
|
||||
<ion-input ion-item>
|
||||
<input control="email" type="email" placeholder="Your email">
|
||||
</ion-input>
|
||||
<ion-input ion-item>
|
||||
<input control="password" type="password" placeholder="Your password">
|
||||
</ion-input>
|
||||
<ion-input ion-item>
|
||||
<ion-label>Description</ion-label>
|
||||
<input control="description" type="text" placeholder="A description">
|
||||
</ion-input>
|
||||
<ion-input ion-item>
|
||||
<ion-label>Note</ion-label>
|
||||
<textarea control="note" type="text" placeholder="A description"></textarea>
|
||||
</ion-input>
|
||||
<ion-input ion-item>
|
||||
<ion-label>Note</ion-label>
|
||||
<textarea control="note" type="text" placeholder="A description"></textarea>
|
||||
</ion-input>
|
||||
<ion-input ion-item>
|
||||
<ion-label>Note</ion-label>
|
||||
<textarea control="note" type="text" placeholder="A description"></textarea>
|
||||
</ion-input>
|
||||
<ion-input ion-item>
|
||||
<ion-label>Note</ion-label>
|
||||
<textarea control="note" type="text" placeholder="A description"></textarea>
|
||||
</ion-input>
|
||||
<ion-switch [checked]="true">
|
||||
Ice cream?
|
||||
</ion-switch>
|
||||
</ion-list>
|
||||
<ion-list inset>
|
||||
<ion-item full>
|
||||
<button type="button" ion-button danger clear (click)="deleteClicked()">
|
||||
Delete Account
|
||||
</button>
|
||||
</ion-item>
|
||||
</ion-list>
|
||||
<button ion-button primary block type="submit">Submit</button>
|
||||
</form>
|
||||
</ion-content>
|
Reference in New Issue
Block a user