+ Submit your story using the following form. Nicholas may be in touch to clarify what you’ve written and he reserves the right to vet stories for accuracy and appropriateness.
+
diff --git a/src/pages/tell/tell.ts b/src/pages/tell/tell.ts
index 39fe021..a5fcd60 100644
--- a/src/pages/tell/tell.ts
+++ b/src/pages/tell/tell.ts
@@ -1,5 +1,6 @@
import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
+import { FormBuilder, FormGroup, Validators, FormControl } from '@angular/forms';
import { ProfileService } from '../../services/profiles';
@@ -11,9 +12,17 @@ import { ProfileService } from '../../services/profiles';
export class TellYourStoryPage {
tabNavEl: any;
+ userSubmissionForm: FormGroup;
- constructor(public navCtrl: NavController) {
+ constructor(public navCtrl: NavController, private formBuilder: FormBuilder, private formControl: FormControl) {
this.tabNavEl = document.querySelector('#tab-nav .tabbar');
+
+ this.userSubmissionForm = this.formBuilder.group({
+ name: [''],
+ about: [''],
+ pic: [''],
+ messages: ['']
+ });
}
ionViewWillEnter() {
@@ -23,4 +32,8 @@ export class TellYourStoryPage {
close(event) {
this.navCtrl.pop();
}
+
+ saveUserSubmission() {
+
+ }
}