Skip to content

Commit bd172e5

Browse files
authored
Merge pull request #200 from dkamburov/master
Update README by removing the directive from code examples
2 parents 1e6238f + 714e877 commit bd172e5

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

README.md

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@ There are two mandatory attributes that need to be set to an Ignite UI control c
6464
selector: 'my-app',
6565
template: `<ig-grid
6666
[(options)]="gridOptions"
67-
[(widgetId)]='id'></ig-grid>`,
68-
directives: [IgGridComponent]
67+
[(widgetId)]='id'></ig-grid>`
6968
})
7069
export class AppComponent {
7170
private gridOptions: IgGrid;
@@ -104,8 +103,7 @@ when there are overlapping properties. Also changing top-level attribute will ap
104103
[height]='h'
105104
[autoGenerateColumns]='true'
106105
>
107-
</ig-grid>`,
108-
directives: [IgGridComponent]
106+
</ig-grid>`
109107
})
110108
export class AppComponent {
111109
private id: string;
@@ -177,8 +175,7 @@ In order to change the more options at once (or recreate the component with anot
177175
selector: 'my-app',
178176
template: `<ig-grid
179177
[(options)]="gridOptions"
180-
[(widgetId)]='id'></ig-grid>`,
181-
directives: [IgGridComponent]
178+
[(widgetId)]='id'></ig-grid>`
182179
})
183180
export class AppComponent {
184181
private gridOptions: IgGrid;
@@ -230,8 +227,7 @@ Binding to control events is achieved by assigning attributes where the name of
230227
template: `<ig-grid
231228
[(options)]="gridOptions"
232229
[(widgetId)]='id'
233-
(dataBind)="dataBindHandler($event)"></ig-grid>`,
234-
directives: [IgGridComponent]
230+
(dataBind)="dataBindHandler($event)"></ig-grid>`
235231
})
236232
export class AppComponent {
237233
private gridOptions: IgGrid;
@@ -263,8 +259,7 @@ Binding to igGrid* feature events is done in the control's configuration code.
263259
selector: 'my-app',
264260
template: `<ig-grid
265261
[(options)]="gridOptions"
266-
[(widgetId)]='id'></ig-grid>`,
267-
directives: [IgGridComponent]
262+
[(widgetId)]='id'></ig-grid>`
268263
})
269264
export class AppComponent {
270265
private gridOptions: IgGrid;
@@ -305,8 +300,7 @@ Component methods can be called by accessing the component from the view. For ex
305300
<features>
306301
<paging [pageSize]="'2'"></paging>
307302
</features>
308-
</ig-grid>',
309-
directives: [IgGridComponent]
303+
</ig-grid>'
310304
})
311305
export class AppComponent {
312306
private gridOptions: IgGrid;

0 commit comments

Comments
 (0)