DEV Community

Discussion on: Reusable HTML in Angular using NgTemplateOutlet

Collapse
 
twittwer profile image
Tobias Wittwer

Really like the approach, do you know a way to accomplish type safety in the template?
To enable autocomplete / Ensure catching of typos like item.Name instead of item.name.

Collapse
 
frederikprijck profile image
Frederik Prijck

Hey Tobias, I don't think this is possible ... I'd argue if it gets to complex you might want to move to a component anyway.