Commit bca5a09646f58870fd5ee7d63b76fa15747dad9d
1 parent
87c3573d3a
Exists in
master
Eliminado componente carousel.
Showing
5 changed files
with
0 additions
and
70 deletions
Show diff stats
src/app/app.module.ts
1 | //#region MODULES | 1 | //#region MODULES |
2 | import { BrowserModule } from '@angular/platform-browser'; | 2 | import { BrowserModule } from '@angular/platform-browser'; |
3 | import { NgModule } from '@angular/core'; | 3 | import { NgModule } from '@angular/core'; |
4 | import { AppRoutingModule } from './app-routing.module'; | 4 | import { AppRoutingModule } from './app-routing.module'; |
5 | import { HttpClientModule } from '@angular/common/http'; | 5 | import { HttpClientModule } from '@angular/common/http'; |
6 | import { FormsModule, ReactiveFormsModule } from '@angular/forms'; | 6 | import { FormsModule, ReactiveFormsModule } from '@angular/forms'; |
7 | import { TooltipModule } from 'ngx-bootstrap/tooltip'; | 7 | import { TooltipModule } from 'ngx-bootstrap/tooltip'; |
8 | import { PopoverModule } from 'ngx-bootstrap/popover'; | 8 | import { PopoverModule } from 'ngx-bootstrap/popover'; |
9 | //#endregion | 9 | //#endregion |
10 | 10 | ||
11 | //#region COMPONENTS | 11 | //#region COMPONENTS |
12 | import { AppComponent } from './app.component'; | 12 | import { AppComponent } from './app.component'; |
13 | import { HeaderComponent } from './components/header/header.component'; | 13 | import { HeaderComponent } from './components/header/header.component'; |
14 | import { SidebarComponent } from './components/sidebar/sidebar.component'; | 14 | import { SidebarComponent } from './components/sidebar/sidebar.component'; |
15 | import { CarouselComponent } from './components/carousel/carousel.component'; | ||
16 | import { HomeComponent } from './components/home/home.component'; | 15 | import { HomeComponent } from './components/home/home.component'; |
17 | import { InicioComponent } from './components/inicio/inicio.component'; | 16 | import { InicioComponent } from './components/inicio/inicio.component'; |
18 | import { BusquedaProductosComponent } from './components/busqueda-productos/busqueda-productos.component'; | 17 | import { BusquedaProductosComponent } from './components/busqueda-productos/busqueda-productos.component'; |
19 | import { ConfirmacionCarritoComponent } from './components/confirmacion-carrito/confirmacion-carrito.component'; | 18 | import { ConfirmacionCarritoComponent } from './components/confirmacion-carrito/confirmacion-carrito.component'; |
20 | import { MasterComponent } from './components/master/master.component'; | 19 | import { MasterComponent } from './components/master/master.component'; |
21 | import { PopoverPromosComponent } from './components/popover-promos/popover-promos.component'; | 20 | import { PopoverPromosComponent } from './components/popover-promos/popover-promos.component'; |
22 | import { PopoverSinonimosComponent } from './components/popover-sinonimos/popover-sinonimos.component'; | 21 | import { PopoverSinonimosComponent } from './components/popover-sinonimos/popover-sinonimos.component'; |
23 | import { AmbImagenesComponent } from './components/amb-imagenes/amb-imagenes.component'; | 22 | import { AmbImagenesComponent } from './components/amb-imagenes/amb-imagenes.component'; |
24 | import { PagoComponent } from './components/pago/pago.component'; | 23 | import { PagoComponent } from './components/pago/pago.component'; |
25 | //#endregion | 24 | //#endregion |
26 | 25 | ||
27 | @NgModule({ | 26 | @NgModule({ |
28 | declarations: [ | 27 | declarations: [ |
29 | AppComponent, | 28 | AppComponent, |
30 | HeaderComponent, | 29 | HeaderComponent, |
31 | SidebarComponent, | 30 | SidebarComponent, |
32 | CarouselComponent, | ||
33 | HomeComponent, | 31 | HomeComponent, |
34 | InicioComponent, | 32 | InicioComponent, |
35 | BusquedaProductosComponent, | 33 | BusquedaProductosComponent, |
36 | ConfirmacionCarritoComponent, | 34 | ConfirmacionCarritoComponent, |
37 | MasterComponent, | 35 | MasterComponent, |
38 | PopoverPromosComponent, | 36 | PopoverPromosComponent, |
39 | PopoverSinonimosComponent, | 37 | PopoverSinonimosComponent, |
40 | AmbImagenesComponent, | 38 | AmbImagenesComponent, |
41 | PagoComponent | 39 | PagoComponent |
42 | ], | 40 | ], |
43 | imports: [ | 41 | imports: [ |
44 | BrowserModule, | 42 | BrowserModule, |
45 | AppRoutingModule, | 43 | AppRoutingModule, |
46 | HttpClientModule, | 44 | HttpClientModule, |
47 | FormsModule, | 45 | FormsModule, |
48 | ReactiveFormsModule, | 46 | ReactiveFormsModule, |
49 | ReactiveFormsModule.withConfig({ warnOnNgModelWithFormControl: 'never' }), | 47 | ReactiveFormsModule.withConfig({ warnOnNgModelWithFormControl: 'never' }), |
50 | TooltipModule.forRoot(), | 48 | TooltipModule.forRoot(), |
51 | PopoverModule.forRoot() | 49 | PopoverModule.forRoot() |
52 | ], | 50 | ], |
53 | providers: [], | 51 | providers: [], |
54 | bootstrap: [AppComponent] | 52 | bootstrap: [AppComponent] |
55 | }) | 53 | }) |
56 | export class AppModule { } | 54 | export class AppModule { } |
57 | 55 |
src/app/components/carousel/carousel.component.html
1 | <div id="carouselExampleSlidesOnly" class="carousel slide" data-ride="carousel"> | File was deleted | |
2 | <div class="carousel-inner"> | ||
3 | <div class="carousel-item active"> | ||
4 | <div class="card" style="width: 18rem;"> | ||
5 | <div class="card-body"> | ||
6 | <h5 class="card-title">Card title</h5> | ||
7 | <h6 class="card-subtitle mb-2 text-muted">Card subtitle</h6> | ||
8 | <p class="card-text">Some quick example text to build on the card title and make up the bulk of the | ||
9 | card's content.</p> | ||
10 | <a href="#" class="card-link">Card link</a> | ||
11 | <a href="#" class="card-link">Another link</a> | ||
12 | </div> | ||
13 | </div> | ||
14 | </div> | ||
15 | <div class="carousel-item"> | ||
16 | <div class="card" style="width: 18rem;"> | ||
17 | <div class="card-body"> | ||
18 | <h5 class="card-title">Card title 2222</h5> | ||
19 | <h6 class="card-subtitle mb-2 text-muted">Card subtitle</h6> | ||
20 | <p class="card-text">Some quick example text to build on the card title and make up the bulk of the | ||
21 | card's content.</p> | ||
22 | <a href="#" class="card-link">Card link</a> | ||
23 | <a href="#" class="card-link">Another link</a> | ||
24 | </div> | ||
25 | </div> | ||
26 | </div> | ||
27 | </div> | ||
28 | </div> |
src/app/components/carousel/carousel.component.scss
src/app/components/carousel/carousel.component.spec.ts
1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | File was deleted | |
2 | |||
3 | import { CarouselComponent } from './carousel.component'; | ||
4 | |||
5 | describe('CarouselComponent', () => { | ||
6 | let component: CarouselComponent; | ||
7 | let fixture: ComponentFixture<CarouselComponent>; | ||
8 | |||
9 | beforeEach(async(() => { | ||
10 | TestBed.configureTestingModule({ | ||
11 | declarations: [ CarouselComponent ] | ||
12 | }) | ||
13 | .compileComponents(); | ||
14 | })); | ||
15 | |||
16 | beforeEach(() => { | ||
17 | fixture = TestBed.createComponent(CarouselComponent); | ||
18 | component = fixture.componentInstance; | ||
19 | fixture.detectChanges(); | ||
20 | }); | ||
21 | |||
22 | it('should create', () => { | ||
23 | expect(component).toBeTruthy(); | ||
24 | }); | ||
25 | }); | ||
26 | 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; |
src/app/components/carousel/carousel.component.ts
1 | import { Component, OnInit } from '@angular/core'; | File was deleted | |
2 | |||
3 | @Component({ | ||
4 | selector: 'app-carousel', | ||
5 | templateUrl: './carousel.component.html', | ||
6 | styleUrls: ['./carousel.component.scss'] | ||
7 | }) | ||
8 | export class CarouselComponent implements OnInit { | ||
9 | |||
10 | constructor() { } | ||
11 | |||
12 | ngOnInit() { | ||
13 | } | ||
14 | |||
15 | } | ||
16 | 1 | import { Component, OnInit } from '@angular/core'; |