Skip to content

Commit 2d659b1

Browse files
committed
refactor(samples): fixing new samples imports
1 parent f723c9b commit 2d659b1

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

live-editing/configs/AccordionConfigGenerator.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,7 @@ export class AccordionConfigGenerator implements IConfigGenerator {
3636
configs.push(new Config({
3737
component: 'AccordionStyleComponent',
3838
additionalFiles: ["/src/app/layouts/accordion/accordion-style/layout.scss"],
39-
appModuleConfig: new AppModuleConfig({
40-
imports: ['AccordionStyleComponent', 'IgxAccordionModule', 'IgxSwitchModule'],
41-
ngDeclarations: ['AccordionStyleComponent'],
42-
ngImports: ['IgxAccordionModule', 'IgxSwitchModule']
43-
}),
39+
appConfig: BaseAppConfig,
4440
shortenComponentPathBy: '/layouts/accordion/'
4541
}));
4642

src/app/data-entries/select/select-styling/select-styling.component.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
import { Component, OnInit, ViewChild } from '@angular/core';
2-
import {
3-
AbsoluteScrollStrategy, ConnectedPositioningStrategy,
4-
HorizontalAlignment, IgxSelectComponent, OverlaySettings,
5-
PositionSettings, VerticalAlignment
6-
} from 'igniteui-angular';
2+
import { AbsoluteScrollStrategy, ConnectedPositioningStrategy, HorizontalAlignment, IgxSelectComponent, OverlaySettings, PositionSettings, VerticalAlignment, IgxLabelDirective, IgxSelectItemComponent } from 'igniteui-angular';
73
import { scaleInTop, scaleOutBottom } from 'igniteui-angular/animations';
4+
import { NgFor } from '@angular/common';
85

96
@Component({
107
selector: 'app-select-styling',
118
styleUrls: ['select-styling.component.scss'],
12-
templateUrl: 'select-styling.component.html'
9+
templateUrl: 'select-styling.component.html',
10+
imports: [IgxSelectComponent, IgxLabelDirective, NgFor, IgxSelectItemComponent]
1311
})
1412
export class SelectStylingComponent implements OnInit {
1513
@ViewChild(IgxSelectComponent, { static: true })

src/app/layouts/accordion/accordion-style/accordion-style.component.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
import { Component } from '@angular/core';
2+
import { IgxSwitchComponent, IgxAccordionComponent, IgxExpansionPanelComponent, IgxExpansionPanelHeaderComponent, IgxExpansionPanelTitleDirective, IgxExpansionPanelBodyComponent } from 'igniteui-angular';
3+
import { FormsModule } from '@angular/forms';
24

35
@Component({
46
selector: 'app-accordion-style',
57
styleUrls: ['./accordion-style.component.scss'],
6-
templateUrl: './accordion-style.component.html'
8+
templateUrl: './accordion-style.component.html',
9+
imports: [IgxSwitchComponent, FormsModule, IgxAccordionComponent, IgxExpansionPanelComponent, IgxExpansionPanelHeaderComponent, IgxExpansionPanelTitleDirective, IgxExpansionPanelBodyComponent]
710
})
811
export class AccordionStyleComponent {
912
public singleBranchExpand = false;

src/app/lists/tree/tree-styling/tree-styling.component.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
import { Component } from '@angular/core';
22
import { DATA } from '../../../data/animations-data';
3+
import { IgxTreeComponent, IgxTreeNodeComponent } from 'igniteui-angular';
4+
import { NgFor } from '@angular/common';
35

46
@Component({
57
selector: 'app-tree-styling',
68
templateUrl: './tree-styling.component.html',
7-
styleUrls: ['./tree-styling.component.scss']
9+
styleUrls: ['./tree-styling.component.scss'],
10+
imports: [IgxTreeComponent, NgFor, IgxTreeNodeComponent]
811
})
912
export class TreeStylingComponent {
1013
public data = DATA;

0 commit comments

Comments
 (0)