Skip to content

Commit

Permalink
chore(demo): fix build (#2216)
Browse files Browse the repository at this point in the history
  • Loading branch information
nsbarsukov authored and splincode committed Jul 27, 2022
1 parent dfe531b commit 9f0059b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ import {changeDetection} from '@demo/emulate/change-detection';
import {TuiDocExample} from '@taiga-ui/addon-doc';

@Component({
selector: `example-table-filters`,
templateUrl: `./table-filters.template.html`,
selector: 'example-table-filters',
templateUrl: './table-filters.template.html',
changeDetection,
})
export class ExampleTuiTableFiltersComponent {
readonly example1: TuiDocExample = {
TypeScript: import(`!!raw-loader!./examples/1/index.ts`),
HTML: import(`!!raw-loader!./examples/1/index.html`),
LESS: import(`!!raw-loader!./examples/1/index.less`),
TypeScript: import('./examples/1/index.ts?raw'),
HTML: import('./examples/1/index.html?raw'),
LESS: import('./examples/1/index.less?raw'),
};

readonly exampleModule = import(`!!raw-loader!./examples/import/import-module.md`);
readonly exampleHtml = import(`!!raw-loader!./examples/import/insert-template.md`);
readonly exampleModule = import('./examples/import/import-module.md?raw');
readonly exampleHtml = import('./examples/import/insert-template.md?raw');
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {CommonModule} from '@angular/common';
import {NgModule} from '@angular/core';
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
import {RouterModule} from '@angular/router';
import {generateRoutes, TuiAddonDocModule} from '@taiga-ui/addon-doc';
import {TuiAddonDocModule, tuiGenerateRoutes} from '@taiga-ui/addon-doc';
import {TuiTableFiltersModule, TuiTableModule} from '@taiga-ui/addon-table';
import {TuiFormatNumberPipeModule} from '@taiga-ui/core';
import {TuiInputNumberModule, TuiToggleModule} from '@taiga-ui/kit';
Expand All @@ -21,7 +21,7 @@ import {ExampleTuiTableFiltersComponent} from './table-filters.component';
TuiTableModule,
TuiTableFiltersModule,
TuiAddonDocModule,
RouterModule.forChild(generateRoutes(ExampleTuiTableFiltersComponent)),
RouterModule.forChild(tuiGenerateRoutes(ExampleTuiTableFiltersComponent)),
],
declarations: [ExampleTuiTableFiltersComponent, TuiTableFiltersExample1],
exports: [ExampleTuiTableFiltersComponent],
Expand Down

0 comments on commit 9f0059b

Please sign in to comment.