mirror of
https://github.com/malumantovanelli/econocart.git
synced 2024-06-16 07:50:20 +00:00
25 lines
460 B
TypeScript
25 lines
460 B
TypeScript
import { Input } from '@angular/core';
|
|
import 'rxjs/add/operator/map';
|
|
|
|
|
|
export class Product {
|
|
|
|
@Input() private _sName: string;
|
|
@Input() private _nId: number;
|
|
constructor() {
|
|
|
|
}
|
|
public get nId(): number {
|
|
return this._nId
|
|
}
|
|
public set nId(id: number) {
|
|
this._nId = id;
|
|
}
|
|
public get sName(): string {
|
|
return this._sName
|
|
}
|
|
public set sName(name: string) {
|
|
this._sName = name;
|
|
}
|
|
|
|
} |