@@ -64,8 +64,7 @@ There are two mandatory attributes that need to be set to an Ignite UI control c
64
64
selector: 'my-app',
65
65
template: `<ig-grid
66
66
[(options)]="gridOptions"
67
- [(widgetId)]='id'></ig-grid>`,
68
- directives: [IgGridComponent]
67
+ [(widgetId)]='id'></ig-grid>`
69
68
})
70
69
export class AppComponent {
71
70
private gridOptions: IgGrid;
@@ -104,8 +103,7 @@ when there are overlapping properties. Also changing top-level attribute will ap
104
103
[height]='h'
105
104
[autoGenerateColumns]='true'
106
105
>
107
- </ig-grid>`,
108
- directives: [IgGridComponent]
106
+ </ig-grid>`
109
107
})
110
108
export class AppComponent {
111
109
private id: string;
@@ -177,8 +175,7 @@ In order to change the more options at once (or recreate the component with anot
177
175
selector: 'my-app',
178
176
template: `<ig-grid
179
177
[(options)]="gridOptions"
180
- [(widgetId)]='id'></ig-grid>`,
181
- directives: [IgGridComponent]
178
+ [(widgetId)]='id'></ig-grid>`
182
179
})
183
180
export class AppComponent {
184
181
private gridOptions: IgGrid;
@@ -230,8 +227,7 @@ Binding to control events is achieved by assigning attributes where the name of
230
227
template: `<ig-grid
231
228
[(options)]="gridOptions"
232
229
[(widgetId)]='id'
233
- (dataBind)="dataBindHandler($event)"></ig-grid>`,
234
- directives: [IgGridComponent]
230
+ (dataBind)="dataBindHandler($event)"></ig-grid>`
235
231
})
236
232
export class AppComponent {
237
233
private gridOptions: IgGrid;
@@ -263,8 +259,7 @@ Binding to igGrid* feature events is done in the control's configuration code.
263
259
selector: 'my-app',
264
260
template: `<ig-grid
265
261
[(options)]="gridOptions"
266
- [(widgetId)]='id'></ig-grid>`,
267
- directives: [IgGridComponent]
262
+ [(widgetId)]='id'></ig-grid>`
268
263
})
269
264
export class AppComponent {
270
265
private gridOptions: IgGrid;
@@ -305,8 +300,7 @@ Component methods can be called by accessing the component from the view. For ex
305
300
<features>
306
301
<paging [pageSize]="'2'"></paging>
307
302
</features>
308
- </ig-grid>',
309
- directives: [IgGridComponent]
303
+ </ig-grid>'
310
304
})
311
305
export class AppComponent {
312
306
private gridOptions: IgGrid;
0 commit comments