We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ecabea9 + 3ee2173 commit bdcc898Copy full SHA for bdcc898
src/igniteui.angular2.ts
@@ -104,6 +104,11 @@ export class IgControlBase<Model> implements DoCheck {
104
105
@Input() set options(v: Model) {
106
this._config = jQuery.extend(true, v, this._opts);
107
+ if (this._opts.dataSource) {
108
+ // _config.dataSource should reference the data if the data is set as a top-level opts
109
+ // to allow two-way data binding
110
+ this._config.dataSource = this._opts.dataSource;
111
+ }
112
this._differ = this._differs.find([]).create(null);
113
this._opts = jQuery.extend(true, {}, this._config);
114
if (this._opts.dataSource) {
0 commit comments