Skip to content
Snippets Groups Projects
Commit d5b01223 authored by Jérémie BRISON's avatar Jérémie BRISON
Browse files

init

parent f2ef4508
No related branches found
No related tags found
4 merge requests!14Recette,!13Dev,!6Topic search,!3Topic card
Showing
with 164 additions and 2 deletions
......@@ -11,10 +11,11 @@ import { StructureListComponent } from './structure-list/structure-list.componen
import { FooterComponent } from './footer/footer.component';
import { HeaderComponent } from './header/header.component';
import { SharedModule } from './shared/shared.module';
import { StructureModule } from './structure/structure.module';
@NgModule({
declarations: [AppComponent, HeaderComponent, FooterComponent, HomeComponent, StructureListComponent],
imports: [BrowserModule, AppRoutingModule, FlexLayoutModule, SharedModule],
imports: [BrowserModule, AppRoutingModule, FlexLayoutModule, SharedModule, StructureModule],
providers: [{ provide: LOCALE_ID, useValue: 'fr' }, CustomBreakPointsProvider],
bootstrap: [AppComponent],
})
......
<div class="content-container">
<div class="section-container">
<p>Home works!</p>
<app-structure></app-structure>
</div>
</div>
<p>card wsdorks!</p>
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { CardComponent } from './card.component';
describe('CardComponent', () => {
let component: CardComponent;
let fixture: ComponentFixture<CardComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ CardComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(CardComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-card',
templateUrl: './card.component.html',
styleUrls: ['./card.component.scss']
})
export class CardComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}
<p>recherche works!</p>
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { RechercheComponent } from './recherche.component';
describe('RechercheComponent', () => {
let component: RechercheComponent;
let fixture: ComponentFixture<RechercheComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ RechercheComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(RechercheComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-recherche',
templateUrl: './recherche.component.html',
styleUrls: ['./recherche.component.scss']
})
export class RechercheComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}
import { TestBed } from '@angular/core/testing';
import { StructureService } from './structure.service';
describe('StructureService', () => {
let service: StructureService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(StructureService);
});
it('should be created', () => {
expect(service).toBeTruthy();
});
});
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class StructureService {
constructor() { }
}
<app-card></app-card>
<app-recherche></app-recherche>
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { StructureComponent } from './structure.component';
describe('StructureComponent', () => {
let component: StructureComponent;
let fixture: ComponentFixture<StructureComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ StructureComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(StructureComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-structure',
templateUrl: './structure.component.html',
styleUrls: ['./structure.component.scss']
})
export class StructureComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { StructureComponent } from './structure.component';
import { CardComponent } from './components/card/card.component';
import { RechercheComponent } from './components/recherche/recherche.component';
@NgModule({
declarations: [StructureComponent, CardComponent, RechercheComponent],
imports: [CommonModule],
exports: [StructureComponent],
})
export class StructureModule {}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment