auto migrate standalone components
This commit is contained in:
@@ -9,8 +9,8 @@ describe('PasswordComponent', () => {
|
||||
beforeEach(
|
||||
waitForAsync(() => {
|
||||
void TestBed.configureTestingModule({
|
||||
declarations: [PasswordComponent],
|
||||
}).compileComponents();
|
||||
imports: [PasswordComponent],
|
||||
}).compileComponents();
|
||||
}),
|
||||
);
|
||||
|
||||
|
||||
@@ -1,14 +1,31 @@
|
||||
import {Component, OnInit} from '@angular/core';
|
||||
import {UntypedFormControl, UntypedFormGroup, Validators} from '@angular/forms';
|
||||
import { UntypedFormControl, UntypedFormGroup, Validators, ReactiveFormsModule } from '@angular/forms';
|
||||
import {Router} from '@angular/router';
|
||||
import {UserService} from '../../../services/user/user.service';
|
||||
import {faWindowRestore} from '@fortawesome/free-solid-svg-icons';
|
||||
import { CardComponent } from '../../../widget-modules/components/card/card.component';
|
||||
import { MatFormField, MatLabel } from '@angular/material/form-field';
|
||||
import { MatInput } from '@angular/material/input';
|
||||
import { ButtonRowComponent } from '../../../widget-modules/components/button-row/button-row.component';
|
||||
import { ButtonComponent } from '../../../widget-modules/components/button/button.component';
|
||||
import { NgIf } from '@angular/common';
|
||||
import { AuthMessagePipe } from '../login/auth-message.pipe';
|
||||
|
||||
@Component({
|
||||
selector: 'app-password',
|
||||
templateUrl: './password.component.html',
|
||||
styleUrls: ['./password.component.less'],
|
||||
standalone: false,
|
||||
selector: 'app-password',
|
||||
templateUrl: './password.component.html',
|
||||
styleUrls: ['./password.component.less'],
|
||||
imports: [
|
||||
CardComponent,
|
||||
ReactiveFormsModule,
|
||||
MatFormField,
|
||||
MatLabel,
|
||||
MatInput,
|
||||
ButtonRowComponent,
|
||||
ButtonComponent,
|
||||
NgIf,
|
||||
AuthMessagePipe,
|
||||
],
|
||||
})
|
||||
export class PasswordComponent implements OnInit {
|
||||
public form: UntypedFormGroup = new UntypedFormGroup({
|
||||
|
||||
Reference in New Issue
Block a user