Skip to content

Commit 5b5f701

Browse files
author
Khabib Murtuzaaliev
committed
Disable firebase auth
1 parent 323f664 commit 5b5f701

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/app/app.component.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Component, OnInit } from '@angular/core';
22
import { RecipeService } from "app/recipes/recipe.service";
33
import { FoodService } from "app/food/food.service";
4+
import { AuthService } from 'app/auth/auth.service';
45

56
@Component({
67
selector: 'app-root',
@@ -15,8 +16,13 @@ export class AppComponent implements OnInit {
1516

1617
constructor(
1718
private recipeService: RecipeService,
18-
private foodService:FoodService
19+
private foodService: FoodService,
20+
private authService: AuthService,
1921
) {
22+
if (this.authService.isAuthed()) {
23+
this.recipeService.loadRecipes();
24+
this.foodService.loadFood();
25+
}
2026

2127
}
2228
title = 'app';

0 commit comments

Comments
 (0)