mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 11:41:20 +08:00
24 lines
483 B
TypeScript
24 lines
483 B
TypeScript
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');
|
|
}
|
|
}
|