generator-angular2-with-router
Version:
A simple angular2 application having 3 pages with angular2 in build router to navigate between pages. It have all basic functionality which a standard angualr2 application needed.
50 lines (37 loc) • 784 B
text/typescript
export class Restaurant {
private _name: string;
private _email: string;
private _phone: string;
private _website: string;
private _address: string;
get name(): string {
return this._name;
}
set name(value: string) {
this._name = value;
}
get email(): string {
return this._email;
}
set email(value: string) {
this._email = value;
}
get phone(): string {
return this._phone;
}
set phone(value: string) {
this._phone = value;
}
get website(): string {
return this._website;
}
set website(value: string) {
this._website = value;
}
get address(): string {
return this._address;
}
set address(value: string) {
this._address = value;
}
}