step 1 - convert al lcomponents, directives and pipes to standalone
see https://v17.angular.io/guide/standalone-migration I executed: ng g @angular/core:standalone and selected "Convert all components, directives and pipes to standalone"
This commit is contained in:
@@ -18,7 +18,7 @@ import {
|
||||
Suggestion,
|
||||
TagField,
|
||||
} from "../plot.service";
|
||||
import { UntypedFormControl } from "@angular/forms";
|
||||
import { UntypedFormControl, FormsModule } from "@angular/forms";
|
||||
import { MatSnackBar } from "@angular/material/snack-bar";
|
||||
import { LimitByComponent } from "../limit-by/limit-by.component";
|
||||
import { YAxisDefinitionComponent } from "../y-axis-definition/y-axis-definition.component";
|
||||
@@ -34,11 +34,41 @@ import {
|
||||
DatePickerComponent,
|
||||
DateValue,
|
||||
} from "../components/datepicker/date-picker.component";
|
||||
import { MatFormField, MatLabel, MatError } from "@angular/material/form-field";
|
||||
import { MatSelect } from "@angular/material/select";
|
||||
import { NgFor, NgIf } from "@angular/common";
|
||||
import { MatOption } from "@angular/material/core";
|
||||
import { MatCheckbox } from "@angular/material/checkbox";
|
||||
import { MatIconAnchor, MatButton } from "@angular/material/button";
|
||||
import { RouterLink } from "@angular/router";
|
||||
import { MatTooltip } from "@angular/material/tooltip";
|
||||
|
||||
@Component({
|
||||
selector: "pdb-visualization-page",
|
||||
templateUrl: "./visualization-page.component.html",
|
||||
styleUrls: ["./visualization-page.component.scss"],
|
||||
selector: "pdb-visualization-page",
|
||||
templateUrl: "./visualization-page.component.html",
|
||||
styleUrls: ["./visualization-page.component.scss"],
|
||||
standalone: true,
|
||||
imports: [
|
||||
QueryAutocompleteComponent,
|
||||
DatePickerComponent,
|
||||
MatFormField,
|
||||
MatLabel,
|
||||
MatSelect,
|
||||
FormsModule,
|
||||
NgFor,
|
||||
MatOption,
|
||||
LimitByComponent,
|
||||
MatCheckbox,
|
||||
YAxisDefinitionComponent,
|
||||
NgIf,
|
||||
MatError,
|
||||
MatIconAnchor,
|
||||
RouterLink,
|
||||
MatButton,
|
||||
MatTooltip,
|
||||
PlotViewComponent,
|
||||
GalleryViewComponent,
|
||||
],
|
||||
})
|
||||
export class VisualizationPageComponent implements OnInit, AfterViewInit {
|
||||
readonly DATE_PATTERN = "YYYY-MM-DD HH:mm:ss"; // for moment-JS
|
||||
|
||||
Reference in New Issue
Block a user