I have strange situation. I have a field in my db called estPossession and it is string that has a date.
In development it is reading ok but in production it is not reading the value!
I tried running postman, it is showing in both development and production, how is it possible?
in postman:
[
{
"id": 1,
"name": "White House Demo",
"projectName": "city of lights",
"sellRent": 1,
"propertyType": "Apartment",
"furnishingType": "Fully",
"price": 180000,
"bhk": 2,
"builtArea": 1400,
"city": "Bangalore",
"country": "India",
"readyToMove": false,
"estPossessionOn": "2024-03-31T00:00:00"
},
{
"id": 2,
"name": "Birla House Demo",
"projectName": "marina square",
"sellRent": 2,
"propertyType": "House",
"furnishingType": "Unfurnished",
"price": 18000,
"bhk": 3,
"builtArea": 1100,
"city": "Houston",
"country": "USA",
"readyToMove": false,
"estPossessionOn": "2025-01-01T00:00:00"
}
]
I am trying to display the estPossession if the "readyToMove" is false.
It is with development but not ok with production?
<span *ngIf="property.readyToMove"> | Ready to Move</span>
<span *ngIf="!property.readyToMove"> | Available after {{property.estPossessionOn | date}}</span>
where it shows the 1st one when the value of readyToMove is true and shows the 2nd one when the value of readyToMove is false. I am getting the property.estPossessionOn as undefined!
in the model it is there