Is it possible to have multiple HTML files triggered based on a condition using just one typescript file? Ideally, changing the value of templateUrl
.
@Component({
selector: 'app-profile',
templateUrl: 'template1.component.html',
styleUrls: ['appprofile.component.css']
})