optimize imports
This commit is contained in:
@ -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 () => {
|
||||
|
@ -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'
|
||||
})
|
||||
|
@ -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)]
|
||||
|
@ -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";
|
||||
|
@ -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({
|
||||
|
Reference in New Issue
Block a user