My template is like this
AM PM
How can I set optio
export class MyComponent { defaultValue = 'PM'; }
Usually it's done like
{{value}} export class MyComponent { values = ['AM', 'PM']; defaultValue = this.values[1]; }
Hint For non-string values use `[ngValue]="..."