optimize imports
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
import { TestBed } from '@angular/core/testing';
|
import {TestBed} from '@angular/core/testing';
|
||||||
import { AppComponent } from './app.component';
|
import {AppComponent} from './app.component';
|
||||||
|
|
||||||
describe('AppComponent', () => {
|
describe('AppComponent', () => {
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
import { Component } from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
import { RouterOutlet } from '@angular/router';
|
import {RouterOutlet} from '@angular/router';
|
||||||
import {TodoTableComponent} from "./todo/table/todo-table.component";
|
|
||||||
import {NavbarComponent} from "./navbar.component";
|
import {NavbarComponent} from "./navbar.component";
|
||||||
import {FlashComponent} from "./flash.component";
|
import {FlashComponent} from "./flash.component";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-root',
|
selector: 'app-root',
|
||||||
standalone: true,
|
standalone: true,
|
||||||
imports: [RouterOutlet, TodoTableComponent, NavbarComponent, FlashComponent],
|
imports: [RouterOutlet, NavbarComponent, FlashComponent],
|
||||||
templateUrl: './app.component.html',
|
templateUrl: './app.component.html',
|
||||||
styleUrl: './app.component.css'
|
styleUrl: './app.component.css'
|
||||||
})
|
})
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core';
|
import {ApplicationConfig, provideZoneChangeDetection} from '@angular/core';
|
||||||
import { provideRouter } from '@angular/router';
|
import {provideRouter} from '@angular/router';
|
||||||
|
|
||||||
import { routes } from './app.routes';
|
import {routes} from './app.routes';
|
||||||
|
|
||||||
export const appConfig: ApplicationConfig = {
|
export const appConfig: ApplicationConfig = {
|
||||||
providers: [provideZoneChangeDetection({ eventCoalescing: true }), provideRouter(routes)]
|
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 {AddTodoComponent} from "./todo/add-todo.component";
|
||||||
import {TodoTableComponent} from "./todo/table/todo-table.component";
|
import {TodoTableComponent} from "./todo/table/todo-table.component";
|
||||||
import {SettingsComponent} from "./settings/settings.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 {FormControl, FormGroup, ReactiveFormsModule, Validators} from "@angular/forms";
|
||||||
import {TodoService} from "./todo.service";
|
import {TodoService} from "./todo.service";
|
||||||
import {Router} from "@angular/router";
|
import {Router} from "@angular/router";
|
||||||
import {FlashComponent} from "../flash.component";
|
|
||||||
import {NgIf} from "@angular/common";
|
|
||||||
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
Reference in New Issue
Block a user