Skip to content

Address

reference
1 min readUpdated

Kind: Class

Source: Frontend/src/app/models/common/address.model.ts (line 6)

Part of: Frontend

Address is a shared frontend model for representing address data in the application. Its clone() method creates a separate Address instance so callers can work with a copy without changing the original model.

Methods

MethodSignatureReturns
cloneclone(ad: Address)void

Properties

PropertyType
AddressIDnumber
AddressLinestring
CountryCodestring
CountryNamestring
Destinationstring
Citystring
Statestring
PostalCodestring
ZipCodestring
RowGuidstring
AddressTypeIDnumber
GovernateIDnumber
HasMarkerboolean
latitudenumber
longitudenumber
RelatedToIDnumber
RelatedTypeIDnumber
_RelatedToNamestring

Diagram

mermaid
graph LR
  A[Address instance] --> B[clone()]
  B --> C[New Address instance]

Usage

ts
import { Address } from '@/app/models/common/address.model';

const address = new Address();

// Create an independent copy before making changes.
const editableAddress = address.clone();

// Changes to editableAddress can be handled separately from address.

AI Coding Instructions

  • Use clone() before editing address data that may also be referenced by existing UI state.
  • Treat the result of clone() as a separate Address instance rather than modifying the source instance.
  • Keep address-related shared model logic in models/common when it is used across frontend features.
  • Check the Address model definition before adding or copying fields so cloning behavior remains aligned with the class.

Used by

25 references from 25 files. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

Imported by (25)

  • BranchDetailsComponentFrontend/src/app/components/configuration/company/main-branch/branch-details.component.ts:1
  • NewBranchComponentFrontend/src/app/components/configuration/company/main-branch/new.branch.component.ts:1
  • WarehouseConfigDetailsComponentFrontend/src/app/components/configuration/company/warehouse/warehouse-config-details/warehouse-config-details.component.ts:1
  • AccountDetailsComponentFrontend/src/app/components/market/account-details/account-details.component.ts:1
  • OrderPanelDetailsComponentFrontend/src/app/components/sales/new-job/order-panel-details/order-panel-details.component.ts:1
  • AddressComponentFrontend/src/app/components/shared/address/address.component.ts:1
  • LocationDropdownComponentFrontend/src/app/components/shared/dropdown/location-dropdown/location-dropdown.component.ts:1
  • DeliveryNoteDetailsComponentFrontend/src/app/components/warehouse/delivery-note-details/delivery-note-details.component.ts:1

…and 17 more.

Was this page helpful?

Download as PDF