Hi Bernd,
I reread your code I think you should be able to do this and be ok:
class NgChartItem {
public id: number;
public articleId: string;
public name: string;
public price: number;
public quantity: string;
public packagingUnit: number;
public scaledPrice: number;
public imagePath: string;
public total: number;
constructor() {}
}
However, this leaves the thing that uses this class responsible to fill the
fields, without the use of the constructor.
Regards
Sander
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.