Ajout pages fav, list-cat + header

This commit is contained in:
Romain 2022-01-19 13:01:19 +01:00
parent 125d0862b5
commit 1bcd85fc5c
19 changed files with 146 additions and 6 deletions

View file

@ -0,0 +1 @@
<p>favoris-user works!</p>

View file

@ -0,0 +1,25 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { FavorisUserComponent } from './favoris-user.component';
describe('FavorisUserComponent', () => {
let component: FavorisUserComponent;
let fixture: ComponentFixture<FavorisUserComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ FavorisUserComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(FavorisUserComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View file

@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-favoris-user',
templateUrl: './favoris-user.component.html',
styleUrls: ['./favoris-user.component.scss']
})
export class FavorisUserComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}

View file

@ -1,3 +1,3 @@
<div *ngFor="let category of listCategories">
<app-card-category [categoryData]="category"></app-card-category>
</div>
<app-card-category [categoryData]="category"></app-card-category>
</div>

View file

@ -0,0 +1 @@
category-works!

View file

@ -0,0 +1,25 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ListCategoriesComponent } from './list-categories.component';
describe('ListCategoriesComponent', () => {
let component: ListCategoriesComponent;
let fixture: ComponentFixture<ListCategoriesComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ ListCategoriesComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(ListCategoriesComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View file

@ -0,0 +1,16 @@
import { Component, OnInit } from '@angular/core';
import { ApiBackService } from 'src/app/services/api-back.service';
@Component({
selector: 'app-list-categories',
templateUrl: './list-categories.component.html',
styleUrls: ['./list-categories.component.scss']
})
export class ListCategoriesComponent implements OnInit {
constructor(private apiBackService : ApiBackService) {
}
ngOnInit(): void {}
}