Ajout pages fav, list-cat + header
This commit is contained in:
parent
125d0862b5
commit
1bcd85fc5c
19 changed files with 146 additions and 6 deletions
1
src/app/pages/favoris-user/favoris-user.component.html
Normal file
1
src/app/pages/favoris-user/favoris-user.component.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<p>favoris-user works!</p>
|
||||
0
src/app/pages/favoris-user/favoris-user.component.scss
Normal file
0
src/app/pages/favoris-user/favoris-user.component.scss
Normal file
25
src/app/pages/favoris-user/favoris-user.component.spec.ts
Normal file
25
src/app/pages/favoris-user/favoris-user.component.spec.ts
Normal 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();
|
||||
});
|
||||
});
|
||||
15
src/app/pages/favoris-user/favoris-user.component.ts
Normal file
15
src/app/pages/favoris-user/favoris-user.component.ts
Normal 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 {
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
category-works!
|
||||
|
|
@ -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();
|
||||
});
|
||||
});
|
||||
16
src/app/pages/list-categories/list-categories.component.ts
Normal file
16
src/app/pages/list-categories/list-categories.component.ts
Normal 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 {}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue