30 seconds of angular
Star
✨✨ New to Angular? Check out interactive Angular Codelab ✨✨

ng-content

With ng-content you can pass any elements to a component.
This simplifies creating reusable components.

@Component({
  selector: 'wrapper',
  template: `
    <div class="wrapper">
      <ng-content></ng-content>
    </div>
  `,
})
export class Wrapper {}
<wrapper>
  <h1>Hello World!</h1>
</wrapper>

Links

Interactive demo