Ngx-bootstrap: rating component does not support reactive forms (requires ngModel)

Created on 12 Sep 2016  路  6Comments  路  Source: valor-software/ngx-bootstrap

rating component does not support reactive forms (requires ngModel)
please change selector to

It implements ControlValueAccessor, but never provides NG_VALUE_ACCESSOR so that implementation is useless.

tx

Sean

Angular 2 Kitchen sink: http://ng2.javascriptninja.io
and source@ https://github.com/born2net/ng2Boilerplate

comp(rating)

Most helpful comment

The following ng2-bootstrap components use the ngModel selector binding:

pagination.component
pager.component
datepicker.component
datepicker-popup.component
button-checkbox.directive
button-radio.directive
timepicker.component
rating.component

All 6 comments

The following ng2-bootstrap components use the ngModel selector binding:

pagination.component
pager.component
datepicker.component
datepicker-popup.component
button-checkbox.directive
button-radio.directive
timepicker.component
rating.component

What do you mean with

selector to

Is the solution to use ngControl binding instead of ngModel binding?

if you look at the component, it uses ngModel, but reactive forms do not use ngModel, thus the directive does not bind to the component element.

fixed with #298

Was this page helpful?
0 / 5 - 0 ratings

Related issues

srjkrl20011991 picture srjkrl20011991  路  3Comments

mounthorse-slns picture mounthorse-slns  路  3Comments

ravirajhalli picture ravirajhalli  路  3Comments

tuoitrexuquang picture tuoitrexuquang  路  3Comments

webdev48 picture webdev48  路  3Comments