optimize imports

This commit is contained in:
2024-12-04 11:26:37 +01:00
parent ed995fb111
commit 7d30d6acbb
5 changed files with 9 additions and 12 deletions

View File

@ -1,5 +1,5 @@
import { TestBed } from '@angular/core/testing';
import { AppComponent } from './app.component';
import {TestBed} from '@angular/core/testing';
import {AppComponent} from './app.component';
describe('AppComponent', () => {
beforeEach(async () => {

View File

@ -1,13 +1,12 @@
import { Component } from '@angular/core';
import { RouterOutlet } from '@angular/router';
import {TodoTableComponent} from "./todo/table/todo-table.component";
import {Component} from '@angular/core';
import {RouterOutlet} from '@angular/router';
import {NavbarComponent} from "./navbar.component";
import {FlashComponent} from "./flash.component";
@Component({
selector: 'app-root',
standalone: true,
imports: [RouterOutlet, TodoTableComponent, NavbarComponent, FlashComponent],
imports: [RouterOutlet, NavbarComponent, FlashComponent],
templateUrl: './app.component.html',
styleUrl: './app.component.css'
})

View File

@ -1,7 +1,7 @@
import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core';
import { provideRouter } from '@angular/router';
import {ApplicationConfig, provideZoneChangeDetection} from '@angular/core';
import {provideRouter} from '@angular/router';
import { routes } from './app.routes';
import {routes} from './app.routes';
export const appConfig: ApplicationConfig = {
providers: [provideZoneChangeDetection({ eventCoalescing: true }), provideRouter(routes)]

View File

@ -1,4 +1,4 @@
import { Routes } from '@angular/router';
import {Routes} from '@angular/router';
import {AddTodoComponent} from "./todo/add-todo.component";
import {TodoTableComponent} from "./todo/table/todo-table.component";
import {SettingsComponent} from "./settings/settings.component";

View File

@ -2,8 +2,6 @@ import {Component, inject, OnInit} from "@angular/core";
import {FormControl, FormGroup, ReactiveFormsModule, Validators} from "@angular/forms";
import {TodoService} from "./todo.service";
import {Router} from "@angular/router";
import {FlashComponent} from "../flash.component";
import {NgIf} from "@angular/common";
@Component({