Skip to content

Commit

Permalink
add angular query devtools for development
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixTJDietrich committed Sep 14, 2024
1 parent 169fb03 commit 42e41c9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
3 changes: 3 additions & 0 deletions webapp/src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
@if (isDevMode()) {
<angular-query-devtools />
}
<div class="flex flex-col min-h-dvh">
<header class="container flex items-center justify-between pt-4">
<a class="flex gap-2 items-center hover:text-muted-foreground" routerLink="/">
Expand Down
11 changes: 8 additions & 3 deletions webapp/src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
import { Component } from '@angular/core';
import { Component, isDevMode } from '@angular/core';
import { AngularQueryDevtools } from '@tanstack/angular-query-devtools-experimental';
import { RouterLink, RouterLinkActive, RouterOutlet } from '@angular/router';
import { ThemeSwitcherComponent } from './components/theme-switcher/theme-switcher.component';
import { LucideAngularModule } from 'lucide-angular';
import { ThemeSwitcherComponent } from './components/theme-switcher/theme-switcher.component';

@Component({
selector: 'app-root',
standalone: true,
imports: [RouterOutlet, LucideAngularModule, ThemeSwitcherComponent, RouterLink, RouterLinkActive],
imports: [RouterOutlet, LucideAngularModule, ThemeSwitcherComponent, RouterLink, RouterLinkActive, AngularQueryDevtools],
templateUrl: './app.component.html',
styles: []
})
export class AppComponent {
title = 'Hephaestus';

isDevMode() {
return isDevMode();
}
}

0 comments on commit 42e41c9

Please sign in to comment.