4
yehaaw
4y

<ng-content> element cannot have content.

Fucking Angular, fuck.

Comments
  • 4
    It absolutely can. It's meant to interpolate content and produce layout components that can be reused.

    You're looking for ng-container.
  • 0
    @SortOfTested Yeah, already know that, but the error message is quite something...
  • 6
    @yehaaw
    Submit a PR to change the error to "ng-content does not support static content. Consider ng-container for this use-case."

    Get yo opensourcery on
  • 1
    @SortOfTested That's actually a great idea! Will do that
Add Comment