export class CreateOrderComponent implements OnInit
{
myorder = new Order(0,0,0);
onSubmit(value){
console.log('you submitted value:',value);
this.pickup();
}
constructor(private router: Router) { }
pickup() {
this.router.navigate(['/pickupLocation']);
}
shipper() {
this.router.navigate(['/shipper']);
}
ngOnInit() { }
}
我正在尝试将对象从我的表单传递到类似页面的侧边栏。我怎么能做到这一点?