src/app/models/address.model.ts
Properties |
Accessors |
address1 |
address1:
|
Type : string
|
Defined in src/app/models/address.model.ts:2
|
address2 |
address2:
|
Type : string
|
Defined in src/app/models/address.model.ts:3
|
city |
city:
|
Type : string
|
Defined in src/app/models/address.model.ts:4
|
country |
country:
|
Type : string
|
Defined in src/app/models/address.model.ts:7
|
state |
state:
|
Type : string
|
Defined in src/app/models/address.model.ts:5
|
zip |
zip:
|
Type : string
|
Defined in src/app/models/address.model.ts:6
|
valid |
getvalid()
|
Defined in src/app/models/address.model.ts:9
|
export class Address {
address1: string;
address2: string;
city: string;
state: string;
zip: string;
country: string;
get valid(): boolean {
return (
this.address1 !== null &&
this.address1 !== undefined &&
this.address1.length > 0 &&
this.address2 !== null &&
this.address2 !== undefined &&
this.address2.length > 0 &&
this.city !== null &&
this.city !== undefined &&
this.city.length > 0 &&
this.state !== null &&
this.state !== undefined &&
this.state.length > 0 &&
this.zip !== null &&
this.zip !== undefined &&
this.zip.length > 0
);
}
}