How to implement ngModel on custom elements?

Given a simple input element I can do this:

<input [(ngModel)]="name" /> {{ name }}

This doesn’t work for my custom elements:

<my-selfmade-combobox [(ngModel)]="name" values="getValues()" required></my-selfmade-combobox>

How can I implement it?