From a006e4d42a0bd1bb85361952f47c27aa5ca3307d Mon Sep 17 00:00:00 2001 From: alrom8 Date: Wed, 23 Oct 2019 10:45:30 +0200 Subject: [PATCH] ajout composant graphique sondage --- src/app/app.module.ts | 2 ++ .../poll-graphic/poll-graphic.component.html | 1 + .../poll-graphic/poll-graphic.component.scss | 0 .../poll-graphic.component.spec.ts | 25 +++++++++++++++++++ .../poll-graphic/poll-graphic.component.ts | 15 +++++++++++ 5 files changed, 43 insertions(+) create mode 100644 src/app/poll-graphic/poll-graphic.component.html create mode 100644 src/app/poll-graphic/poll-graphic.component.scss create mode 100644 src/app/poll-graphic/poll-graphic.component.spec.ts create mode 100644 src/app/poll-graphic/poll-graphic.component.ts diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 6f6a2080..26cd56de 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -36,6 +36,7 @@ import { TranslateService } from '@ngx-translate/core'; import {TranslateHttpLoader} from '@ngx-translate/http-loader'; +import { PollGraphicComponent } from './poll-graphic/poll-graphic.component'; export class MyMissingTranslationHandler implements MissingTranslationHandler { handle(params: MissingTranslationHandlerParams) { @@ -71,6 +72,7 @@ export function HttpLoaderFactory(http: HttpClient) { VotingChoiceComponent, PasswordComponent, HomeComponent, + PollGraphicComponent, ], imports: [ diff --git a/src/app/poll-graphic/poll-graphic.component.html b/src/app/poll-graphic/poll-graphic.component.html new file mode 100644 index 00000000..7e2222cd --- /dev/null +++ b/src/app/poll-graphic/poll-graphic.component.html @@ -0,0 +1 @@ +

poll-graphic works!

diff --git a/src/app/poll-graphic/poll-graphic.component.scss b/src/app/poll-graphic/poll-graphic.component.scss new file mode 100644 index 00000000..e69de29b diff --git a/src/app/poll-graphic/poll-graphic.component.spec.ts b/src/app/poll-graphic/poll-graphic.component.spec.ts new file mode 100644 index 00000000..ed5118d3 --- /dev/null +++ b/src/app/poll-graphic/poll-graphic.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { PollGraphicComponent } from './poll-graphic.component'; + +describe('PollGraphicComponent', () => { + let component: PollGraphicComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ PollGraphicComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(PollGraphicComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/poll-graphic/poll-graphic.component.ts b/src/app/poll-graphic/poll-graphic.component.ts new file mode 100644 index 00000000..5f2b37d8 --- /dev/null +++ b/src/app/poll-graphic/poll-graphic.component.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'framadate-poll-graphic', + templateUrl: './poll-graphic.component.html', + styleUrls: ['./poll-graphic.component.scss'] +}) +export class PollGraphicComponent implements OnInit { + + constructor() { } + + ngOnInit() { + } + +}