Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $key: string;
- datePlaced: number;
- items: any[] = [];
- netPrice: number;
- this.datePlaced = new Date().getTime();
- this.items = shoppingCart.items.map(i => {
- return {
- product: {
- title: i.product.title,
- imageUrl: i.product.imageUrl,
- price: i.product.price
- },
- quantity: i.quantity,
- totalPrice: i.totalPrice
- };
- });
- this.netPrice = shoppingCart.totalPrice;
- }
- this.orderId = this.route.snapshot.paramMap.get('id');
- this.order$ = this.orderService.getOrderById(this.orderId);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement