1 min read 39 words Updated Sep 24, 2026 Created Sep 24, 2026
#angular

This is a directive for rendering other components dynamically in a template.


<ng-container *ngComponentOutlet="fnReturningComponentClass()" />

// function might look like: 

fnReturningComponentClass() {
	return this.isAdmin() ? AdminDashboard : NormalDashboard
}


// Where AdminDashboard etc. is a normal component