typescript - Angular 2: How to bind select field in model-driven forms? -
i couldn't find example of binding model-driven one-way data bound form value select field. can me find it?
below example of non-working code try(jade syntax).
select([formcontrol]='registerform.controls["type"]') option(value='value1') value 1 option(value='value2') value 2
it easier thought.
select([formcontrol]='registerform.controls["type"]') option([value]='"value1"') value 1 option([value]='"value2"') value 2
Comments
Post a Comment