Hello,
i have this Class in my Angular 4 Project
when i call this function from another Service class
let newItem = this.item(id, name, price, quantity, data, imagePath);
and want to give the Parameters to the Item Class
i become always the Error:
ERROR Error: Uncaught (in promise): Error: No provider for Number!
import { Injectable } from '@angular/core';
@Injectable()
export class Item {
constructor(private id: number,
private articleId: string,
private name: string,
private price: string,
private quantity: number,
private data: string,
private imagePath: string){}