chore: upgrade Angular and related dependencies to version 20.0.0
feat: refactor AboutComponent to be standalone and include CommonModule feat: refactor BlogComponent to be standalone and include CommonModule feat: refactor ContactSidebarComponent to be standalone and include CommonModule feat: refactor ContactComponent to be standalone and include CommonModule and FormsModule feat: refactor NavbarComponent to be standalone and include CommonModule and RouterModule feat: refactor ProjectsComponent to be standalone and include CommonModule feat: refactor ResumeComponent to be standalone and include CommonModule feat: refactor AppComponent to be standalone and include necessary components feat: remove AppModule in favor of standalone components fix: update tests to include HttpClientTestingModule where necessary fix: update routing module to export appRoutes without NgModule chore: add environment configuration for production
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { HttpClientTestingModule } from '@angular/common/http/testing';
|
||||
|
||||
import { BlogComponent } from './blog.component';
|
||||
|
||||
@@ -8,7 +9,7 @@ describe('BlogComponent', () => {
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [BlogComponent]
|
||||
imports: [BlogComponent, HttpClientTestingModule]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { CvService } from '../services/cv.service';
|
||||
import { BaseComponent } from '../base/base.component';
|
||||
import { IBlog } from './blog.model';
|
||||
@@ -7,7 +8,9 @@ import { environment } from 'src/environments/environment';
|
||||
@Component({
|
||||
selector: 'app-blog',
|
||||
templateUrl: './blog.component.html',
|
||||
styleUrl: './blog.component.scss'
|
||||
styleUrl: './blog.component.scss',
|
||||
standalone: true,
|
||||
imports: [CommonModule]
|
||||
})
|
||||
export class BlogComponent extends BaseComponent<IBlog> implements OnInit{
|
||||
blogUrl!: string;
|
||||
|
||||
Reference in New Issue
Block a user