From 0ff4a2e3c26f85b6cbc299e78a6f89bf9e8ba395 Mon Sep 17 00:00:00 2001 From: Jegor Date: Mon, 17 May 2021 11:11:17 +0200 Subject: [PATCH] wip: component created and added to the app.module.ts --- Frontend/src/app/app.module.ts | 4 ++- .../slider-for-products.component.css | 0 .../slider-for-products.component.html | 1 + .../slider-for-products.component.spec.ts | 25 +++++++++++++++++++ .../slider-for-products.component.ts | 15 +++++++++++ 5 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 Frontend/src/app/components/slider-for-products/slider-for-products.component.css create mode 100644 Frontend/src/app/components/slider-for-products/slider-for-products.component.html create mode 100644 Frontend/src/app/components/slider-for-products/slider-for-products.component.spec.ts create mode 100644 Frontend/src/app/components/slider-for-products/slider-for-products.component.ts diff --git a/Frontend/src/app/app.module.ts b/Frontend/src/app/app.module.ts index 169233b..d183942 100644 --- a/Frontend/src/app/app.module.ts +++ b/Frontend/src/app/app.module.ts @@ -30,6 +30,7 @@ import {MatSidenavModule} from '@angular/material/sidenav'; import {MatListModule} from "@angular/material/list"; import {BottomBarComponent} from './components/bottom-bar/bottom-bar.component'; import { HotDealsWidgetComponent } from './components/hot-deals-widget/hot-deals-widget.component'; +import { SliderForProductsComponent } from './components/slider-for-products/slider-for-products.component'; // For cookie popup @@ -87,7 +88,8 @@ const cookieConfig: NgcCookieConsentConfig = { PrivacyComponent, TopBarComponent, BottomBarComponent, - HotDealsWidgetComponent + HotDealsWidgetComponent, + SliderForProductsComponent ], imports: [ BrowserModule, diff --git a/Frontend/src/app/components/slider-for-products/slider-for-products.component.css b/Frontend/src/app/components/slider-for-products/slider-for-products.component.css new file mode 100644 index 0000000..e69de29 diff --git a/Frontend/src/app/components/slider-for-products/slider-for-products.component.html b/Frontend/src/app/components/slider-for-products/slider-for-products.component.html new file mode 100644 index 0000000..be93627 --- /dev/null +++ b/Frontend/src/app/components/slider-for-products/slider-for-products.component.html @@ -0,0 +1 @@ +

slider-for-products works!

diff --git a/Frontend/src/app/components/slider-for-products/slider-for-products.component.spec.ts b/Frontend/src/app/components/slider-for-products/slider-for-products.component.spec.ts new file mode 100644 index 0000000..f051463 --- /dev/null +++ b/Frontend/src/app/components/slider-for-products/slider-for-products.component.spec.ts @@ -0,0 +1,25 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { SliderForProductsComponent } from './slider-for-products.component'; + +describe('SliderForProductsComponent', () => { + let component: SliderForProductsComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [ SliderForProductsComponent ] + }) + .compileComponents(); + }); + + beforeEach(() => { + fixture = TestBed.createComponent(SliderForProductsComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/Frontend/src/app/components/slider-for-products/slider-for-products.component.ts b/Frontend/src/app/components/slider-for-products/slider-for-products.component.ts new file mode 100644 index 0000000..373a624 --- /dev/null +++ b/Frontend/src/app/components/slider-for-products/slider-for-products.component.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-slider-for-products', + templateUrl: './slider-for-products.component.html', + styleUrls: ['./slider-for-products.component.css'] +}) +export class SliderForProductsComponent implements OnInit { + + constructor() { } + + ngOnInit(): void { + } + +}