Skip to content

Commit

Permalink
chore: remove redundant imports
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Apr 1, 2024
1 parent cc6384a commit b838ccc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 61 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {TuiRootModule, TuiDialogModule, TuiAlertModule, TuiPushModule} from '@ta
bootstrapApplication(AppComponent, {
providers: [
provideAnimations(),
provideRouter(routes),
importProvidersFrom(
TuiRootModule,
TuiDialogModule,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {TuiRootModule} from '@taiga-ui/core';
bootstrapApplication(AppComponent, {
providers: [
provideAnimations(),
provideRouter(routes),
importProvidersFrom(
TuiRootModule,
// ...
Expand Down
63 changes: 4 additions & 59 deletions projects/demo/src/modules/app/home/home.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -219,49 +219,6 @@ <h2 class="tui-space_top-10">Manual</h2>
3. Root component
</h2>

<h3 class="tui-space_top-5">Modules</h3>

<tui-tabs-with-more
#ngModules
class="tabs"
>
<button
*tuiItem
tuiTab
>
<tui-doc-tab src="assets/icons/ts.svg">app.module.ts</tui-doc-tab>
</button>

<button
*tuiItem
tuiTab
>
<tui-doc-tab src="assets/icons/html.svg">app.component.html</tui-doc-tab>
</button>
</tui-tabs-with-more>
<ng-container *ngIf="ngModules.activeItemIndex === 0">
<tui-doc-code [code]="appModule" />
<tui-accordion class="tui-space_top-3">
<tui-accordion-item>
Taiga UI also has optional modules for dialogs and notifications. If you need these features, add
modules into your app.module.ts

<ng-template tuiAccordionItemContent>
<tui-doc-code
filename="app.module.ts"
[code]="appModuleOptional"
/>
</ng-template>
</tui-accordion-item>
</tui-accordion>
</ng-container>
<tui-doc-code
*ngIf="ngModules.activeItemIndex === 1"
[code]="appTemplate"
/>

<h3 class="tui-space_top-10">Standalone</h3>

<tui-tabs-with-more
#ngStandalone
class="tabs"
Expand Down Expand Up @@ -289,22 +246,10 @@ <h3 class="tui-space_top-10">Standalone</h3>
*ngIf="ngStandalone.activeItemIndex === 0"
[code]="standalone"
/>
<ng-container *ngIf="ngStandalone.activeItemIndex === 1">
<tui-doc-code [code]="standaloneMain" />
<tui-accordion class="tui-space_top-3">
<tui-accordion-item>
Taiga UI also has optional modules for dialogs and notifications. If you need these features, add
modules into your main.ts

<ng-template tuiAccordionItemContent>
<tui-doc-code
filename="main.ts"
[code]="standaloneMainOptional"
/>
</ng-template>
</tui-accordion-item>
</tui-accordion>
</ng-container>
<tui-doc-code
*ngIf="ngStandalone.activeItemIndex === 1"
[code]="standaloneMain"
/>
<tui-doc-code
*ngIf="ngStandalone.activeItemIndex === 2"
[code]="appTemplate"
Expand Down

0 comments on commit b838ccc

Please sign in to comment.