t component when our ChildComponent is used. Then, in the component’s templat…t()decorator that was imported from @angular/core . This basically tells Angular this property will be injected by a parent component when our ChildComponent is used. Then, in the component’s template w…