Last change
on this file since 6a80231 was 6a80231, checked in by Ema <ema_spirova@…>, 3 years ago |
create initial planner and routing with angular
|
-
Property mode
set to
100644
|
File size:
608 bytes
|
Rev | Line | |
---|
[6a80231] | 1 | import { Component, OnInit } from '@angular/core';
|
---|
| 2 | import { Router } from '@angular/router';
|
---|
| 3 | import { Planner } from 'src/app/_models/planner';
|
---|
| 4 |
|
---|
| 5 | @Component({
|
---|
| 6 | selector: 'app-edit-planner',
|
---|
| 7 | templateUrl: './edit-planner.component.html',
|
---|
| 8 | styleUrls: ['./edit-planner.component.css']
|
---|
| 9 | })
|
---|
| 10 | export class EditPlannerComponent implements OnInit {
|
---|
| 11 |
|
---|
| 12 | planner: Planner;
|
---|
| 13 |
|
---|
| 14 |
|
---|
| 15 | constructor(private router: Router) {
|
---|
| 16 | this.planner = new Planner();
|
---|
| 17 | }
|
---|
| 18 |
|
---|
| 19 | ngOnInit(): void {
|
---|
| 20 | }
|
---|
| 21 |
|
---|
| 22 |
|
---|
| 23 | onClickSavePlanner(){
|
---|
| 24 | this.router.navigate(['planners']);
|
---|
| 25 | }
|
---|
| 26 |
|
---|
| 27 | onClickAddLocation(){
|
---|
| 28 | this.router.navigate(['form']);
|
---|
| 29 | }
|
---|
| 30 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.