Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public addNewProduct() {
- if (this.f.valid) {
- this.product.count = 1;
- this.productService.saveProduct(this.product).subscribe((data) => console.log('product added or updated'));
- }
- this.router.navigate(['admin-panel/products']);
- }
- public addNewProduct() {
- if (this.f.valid) {
- this.product.count = 1;
- this.productService.saveProduct(this.product).subscribe(data => console.log('product added or updated'));
- }
- this.router.navigate(['admin-panel/products']);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement