econocart/src/models/class/Product.ts

25 lines
460 B
TypeScript
Raw Normal View History

2017-04-30 14:55:15 +00:00
import { Input } from '@angular/core';
import 'rxjs/add/operator/map';
export class Product {
2017-04-30 14:55:15 +00:00
@Input() private _sName: string;
2017-04-19 12:50:28 +00:00
@Input() private _nId: number;
constructor() {
}
2017-04-19 12:50:28 +00:00
public get nId(): number {
return this._nId
}
public set nId(id: number) {
this._nId = id;
}
2017-04-30 14:55:15 +00:00
public get sName(): string {
return this._sName
}
2017-04-30 14:55:15 +00:00
public set sName(name: string) {
this._sName = name;
}
}