mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00

Converted values to some sass variables, moved transition to after button tap, added border bottom for md mode, reorganized the sass variables by the order they’re used, removed the use of !important, added iOS hover background-color. Closes #283
25 lines
507 B
TypeScript
25 lines
507 B
TypeScript
import {FORM_DIRECTIVES, FormBuilder, Validators, Control, ControlGroup} from 'angular2/angular2';
|
|
|
|
import {App} from 'ionic/ionic';
|
|
|
|
|
|
@App({
|
|
templateUrl: 'main.html',
|
|
providers: [FormBuilder],
|
|
directives: [FORM_DIRECTIVES]
|
|
})
|
|
class MyApp {
|
|
constructor(fb: FormBuilder) {
|
|
this.myForm = fb.group({
|
|
mapStyle: ['hybrid', Validators.required]
|
|
});
|
|
|
|
this.modelStyle = 'B';
|
|
}
|
|
|
|
doSubmit(event) {
|
|
console.log('Submitting form', this.myForm.value);
|
|
event.preventDefault();
|
|
}
|
|
}
|