From 77a803388d5d2cb1a8a6bbfc43467be678516f56 Mon Sep 17 00:00:00 2001 From: Flo Date: Sun, 1 Nov 2026 11:06:28 +0100 Subject: [PATCH] feat: remove boilerplate code --- src/app/app.component.html | 344 ------------------------------------- src/app/app.component.ts | 9 +- src/app/app.config.ts | 7 +- src/app/app.routes.ts | 3 - 4 files changed, 4 insertions(+), 359 deletions(-) delete mode 100644 src/app/app.routes.ts diff --git a/src/app/app.component.html b/src/app/app.component.html index a1c4296..e69de29 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,344 +0,0 @@ - - - - - - - - - - - -
-
-
- -

Hello, {{ title() }}

-

Congratulations! Your app is running. 🎉

-
- -
-
- @for (item of [ - { title: 'Explore the Docs', link: 'https://angular.dev' }, - { title: 'Learn with Tutorials', link: 'https://angular.dev/tutorials' }, - { title: 'Prompt and best practices for AI', link: 'https://angular.dev/ai/develop-with-ai'}, - { title: 'CLI Docs', link: 'https://angular.dev/tools/cli' }, - { title: 'Angular Language Service', link: 'https://angular.dev/tools/language-service' }, - { title: 'Angular DevTools', link: 'https://angular.dev/tools/devtools' }, - ]; track item.title) { - - {{ item.title }} - - - - - } -
- -
-
-
- - - - - - - - - - - diff --git a/src/app/app.component.ts b/src/app/app.component.ts index da6d671..42fa9d7 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -1,12 +1,9 @@ -import { Component, signal } from '@angular/core'; -import { RouterOutlet } from '@angular/router'; +import { Component } from '@angular/core'; @Component({ - imports: [RouterOutlet], + imports: [], selector: 'app-root', styleUrl: './app.component.css', templateUrl: './app.component.html', }) -export class AppComponent { - protected readonly title = signal('mv-ng-typeahead'); -} +export class AppComponent {} diff --git a/src/app/app.config.ts b/src/app/app.config.ts index e60fc79..45c753e 100644 --- a/src/app/app.config.ts +++ b/src/app/app.config.ts @@ -1,10 +1,5 @@ import { ApplicationConfig, provideBrowserGlobalErrorListeners } from '@angular/core'; -import { provideRouter } from '@angular/router'; -import { routes } from './app.routes'; export const appConfig: ApplicationConfig = { - providers: [ - provideBrowserGlobalErrorListeners(), - provideRouter(routes) - ] + providers: [provideBrowserGlobalErrorListeners()], }; diff --git a/src/app/app.routes.ts b/src/app/app.routes.ts deleted file mode 100644 index dc39edb..0000000 --- a/src/app/app.routes.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { Routes } from '@angular/router'; - -export const routes: Routes = [];