I am now able to get the object in the view however I cannot run an if statement. Per previous answer this is how I am bringing in the object.
public getPos
Use the safe-navigation operator to guard against null or undefined for async fetched data:
null
undefined
{{cart.vegetable}}