| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- import { Component, OnInit } from "@angular/core";
- import { Router } from "@angular/router";
- //import { Personal } from "@app/models/investment-proposal-form";
- import { FormInvestmentProposalService } from "@app/services/form-investment-proposal.service";
- @Component({
- selector: "mt-wizard-personal",
- templateUrl: "./personal.component.html"
- })
- export class PersonalComponent implements OnInit {
- title = "Please tell us about yourself.";
- //personal: Personal;
- form: any;
- constructor(
- private router: Router,
- private formDataService: FormInvestmentProposalService
- ) {}
- ngOnInit() {
- //this.personal = this.formDataService.getPersonal();
- console.log("Personal feature loaded!");
- }
- save(form: any): boolean {
- if (!form.valid) {
- return false;
- }
- //this.formDataService.setPersonal(this.personal);
- return true;
- }
- goToNext(form: any) {
- //if (this.save(form)) {
- if (true) {
- // Navigate to the work page
- this.router.navigate(["/work"]);
- }
- }
- }
|