File

src/app/models/address.model.ts

Index

Properties
Accessors

Properties

address1
address1: string
Type : string
address2
address2: string
Type : string
city
city: string
Type : string
country
country: string
Type : string
state
state: string
Type : string
zip
zip: string
Type : string

Accessors

valid
getvalid()
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
    );
  }
}

results matching ""

    No results matching ""