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:
@@ -8,8 +8,8 @@ describe('TextWidgetComponent', () => {
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [ TextWidgetComponent ]
|
||||
})
|
||||
imports: [TextWidgetComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(TextWidgetComponent);
|
||||
|
||||
@@ -3,10 +3,14 @@ import { MatDialog } from '@angular/material/dialog';
|
||||
import { ConfirmationDialogComponent } from 'src/app/confirmation-dialog/confirmation-dialog.component';
|
||||
import { TextWidget } from 'src/app/dashboard.service';
|
||||
import { AddTextDialogComponent } from '../add-text-dialog/add-text-dialog.component';
|
||||
import { MatIconButton } from '@angular/material/button';
|
||||
import { MarkdownComponent } from 'ngx-markdown';
|
||||
|
||||
@Component({
|
||||
selector: 'app-text-widget',
|
||||
templateUrl: './text-widget.component.html'
|
||||
selector: 'app-text-widget',
|
||||
templateUrl: './text-widget.component.html',
|
||||
standalone: true,
|
||||
imports: [MatIconButton, MarkdownComponent]
|
||||
})
|
||||
export class TextWidgetComponent {
|
||||
@Input()
|
||||
|
||||
Reference in New Issue
Block a user