Relative Content

Tag Archive for angulartypescriptconditional-statementsboolean

Modify parent component output based on boolean value set in child component in Angular

I’m new to Angular and need help on how to best deal with a situation using Angular 16.
Basically I have two components for two different versions of our site header, one is the default and the other is for certain pages. The component for the header is being called in app.component.html but I’d like to add a conditional here so that when certain pages are being viewed (each page being a component) it displays the alternative header.