Standalone app - auto migrate
This commit is contained in:
@@ -4,12 +4,16 @@ import jwt_decode from "jwt-decode";
|
||||
import { AuthService } from 'src/app/auth/auth.service';
|
||||
import { User } from 'src/app/models/user.model';
|
||||
import { NotificationsService } from 'src/app/services/notifications.service';
|
||||
import { environment } from 'src/environments/environment';
|
||||
import { environment } from 'src/environments/environment';
|
||||
import { MatCardModule } from '@angular/material/card';
|
||||
import { NgIf } from '@angular/common';
|
||||
|
||||
@Component({
|
||||
selector: 'app-login-page',
|
||||
templateUrl: './login-page.component.html',
|
||||
styleUrls: ['./login-page.component.scss']
|
||||
@Component({
|
||||
selector: 'app-login-page',
|
||||
templateUrl: './login-page.component.html',
|
||||
styleUrls: ['./login-page.component.scss'],
|
||||
standalone: true,
|
||||
imports: [NgIf, MatCardModule]
|
||||
})
|
||||
|
||||
export class LoginPageComponent implements OnInit {
|
||||
|
||||
@@ -8,8 +8,8 @@ describe('NotificationsComponent', () => {
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [ NotificationsComponent ]
|
||||
})
|
||||
imports: [NotificationsComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(NotificationsComponent);
|
||||
|
||||
@@ -1,10 +1,18 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { NotificationsService } from 'src/app/services/notifications.service';
|
||||
import { MatCardModule } from '@angular/material/card';
|
||||
import { NgFor, NgIf } from '@angular/common';
|
||||
|
||||
@Component({
|
||||
selector: 'app-notifications',
|
||||
templateUrl: './notifications.component.html',
|
||||
styleUrls: ['./notifications.component.scss'],
|
||||
selector: 'app-notifications',
|
||||
templateUrl: './notifications.component.html',
|
||||
styleUrls: ['./notifications.component.scss'],
|
||||
standalone: true,
|
||||
imports: [
|
||||
NgFor,
|
||||
MatCardModule,
|
||||
NgIf,
|
||||
],
|
||||
})
|
||||
export class NotificationsComponent {
|
||||
constructor(
|
||||
|
||||
Reference in New Issue
Block a user