convert image to to standalone component

This commit is contained in:
2024-10-01 19:09:59 +02:00
parent 4b211e425d
commit b0415ed972
2 changed files with 7 additions and 2 deletions

View File

@@ -65,7 +65,6 @@ import { LimitByComponent } from "./limit-by/limit-by.component";
GalleryViewComponent, GalleryViewComponent,
GalleryItemView, GalleryItemView,
GalleryFilterView, GalleryFilterView,
ImageToggleComponent,
DashboardPageComponent, DashboardPageComponent,
DashboardComponent, DashboardComponent,
TextWidgetComponent, TextWidgetComponent,
@@ -84,6 +83,7 @@ import { LimitByComponent } from "./limit-by/limit-by.component";
ReactiveFormsModule, ReactiveFormsModule,
DatePickerComponent, DatePickerComponent,
DragDropModule, DragDropModule,
ImageToggleComponent,
LimitByComponent, LimitByComponent,
MainPageComponent, MainPageComponent,
MatAutocompleteModule, MatAutocompleteModule,

View File

@@ -1,9 +1,14 @@
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core'; import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
@Component({ @Component({
selector: 'pdb-image-toggle', selector: 'pdb-image-toggle',
templateUrl: './image-toggle.component.html', templateUrl: './image-toggle.component.html',
styleUrls: ['./image-toggle.component.scss'] styleUrls: ['./image-toggle.component.scss'],
standalone: true,
imports: [
BrowserModule
]
}) })
export class ImageToggleComponent implements OnInit { export class ImageToggleComponent implements OnInit {