Skip to content

Commit

Permalink
Made dialog component standalone for easier component testing with Cy…
Browse files Browse the repository at this point in the history
…press
  • Loading branch information
alcfeoh committed Nov 30, 2023
1 parent 3e30536 commit d91af0b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { HelloComponent } from './hello/hello.component';
import { routing } from './app.routing';
import {LoginComponent} from "./router/login/login.component";
import {HTTP_INTERCEPTORS, HttpClientModule} from "@angular/common/http";
import { DialogComponent } from './dialog/dialog.component';
import { HeaderComponent } from './header/header.component';
import {LicensePlateComponent} from './license-plate/license-plate.component';
import { CarouselComponent } from './carousel/carousel.component';
Expand All @@ -22,7 +21,7 @@ import { JumbotronComponent } from './jumbotron/jumbotron.component';
@NgModule({
declarations: [
AppComponent, HelloComponent, LicensePlateComponent,
LoginComponent, DialogComponent, HeaderComponent,
LoginComponent, HeaderComponent,
CarouselComponent, CurrencySwitcherComponent,
CheckoutFormComponent, CheckoutViewComponent, CartViewComponent, JumbotronComponent
],
Expand Down
5 changes: 4 additions & 1 deletion src/app/dialog/dialog.component.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';
import {NgIf} from '@angular/common';

@Component({
selector: 'app-dialog',
templateUrl: './dialog.component.html',
styleUrls: ['./dialog.component.css']
styleUrls: ['./dialog.component.css'],
imports: [NgIf],
standalone: true
})
export class DialogComponent implements OnInit {

Expand Down

0 comments on commit d91af0b

Please sign in to comment.