- Form fixes
This commit is contained in:
@@ -28,6 +28,6 @@
|
||||
<ion-label>Your schtick with #gays</ion-label>
|
||||
<ion-textarea formControlName="messages" name="messages"></ion-textarea>
|
||||
</ion-item>
|
||||
<button ion-button type="submit" block [disabled]="!userSubmissionForm.valid" (click)="saveUserSubmission()">Submit</button>
|
||||
<button ion-button type="submit" block (click)="saveUserSubmission()">Submit</button>
|
||||
</form>
|
||||
</ion-content>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { NavController } from 'ionic-angular';
|
||||
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
|
||||
import { FormBuilder, FormGroup } from '@angular/forms';
|
||||
|
||||
import { ProfileService } from '../../services/profiles';
|
||||
|
||||
@@ -14,14 +14,14 @@ export class TellYourStoryPage {
|
||||
tabNavEl: any;
|
||||
userSubmissionForm: FormGroup;
|
||||
|
||||
constructor(public navCtrl: NavController, private formBuilder: FormBuilder, private validators: Validators) {
|
||||
constructor(public navCtrl: NavController, private formBuilder: FormBuilder) {
|
||||
this.tabNavEl = document.querySelector('#tab-nav .tabbar');
|
||||
|
||||
this.userSubmissionForm = this.formBuilder.group({
|
||||
name: ['', [ validators.required ] ],
|
||||
about: ['', [ validators.required ] ],
|
||||
pic: ['', [ validators.required ] ],
|
||||
messages: ['', [ validators.required ] ]
|
||||
name: [''],
|
||||
about: [''],
|
||||
pic: [''],
|
||||
messages: ['']
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user