UNPKG

awaken-direct-democracy

Version:

This is the functional skeleton / working mock up of a disruptive app to increase voter turnout and participation driven at the start by just one person - Tom Atkinson in New Zealand - after watching in horror the signing of the TPPA in Auckland February

28 lines (20 loc) 605 B
import { Component } from '@angular/core'; import { NavController } from 'ionic-angular'; import { TabsPage } from '../tabs/tabs'; import { UserData } from '../../providers/user-data'; @Component({ selector: 'page-login', templateUrl: 'signup.html' }) export class SignupPage { signup: {username?: string, password?: string} = {}; submitted = false; constructor(public navCtrl: NavController, public userData: UserData) {} onSignup(form) { this.submitted = true; if (form.valid) { this.userData.signup(this.signup.username); this.navCtrl.push(TabsPage); } } }