rating component does not support reactive forms (requires ngModel) It implements ControlValueAccessor, but never provides NG_VALUE_ACCESSOR so that implementation is useless. tx Sean Angular 2 Kitchen sink: http://ng2.javascriptninja.io
please change selector to
and source@ https://github.com/born2net/ng2Boilerplate
here is an example of how the components should be supported:
https://github.com/born2net/ng2Boilerplate/blob/master/src/comps/counterinputcomponent/CounterInputComponent.ts
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
Most helpful comment
The following ng2-bootstrap components use the ngModel selector binding: