In Angular2, sometime we use @Output to pass data to parent component, then parent may pass the data down to another child component. When you want to display the property of this object, we may need to check whether the object exists or not, otherwi…