started with post editor
This commit is contained in:
1
frontend/src/app/routes/admin/admin.component.html
Normal file
1
frontend/src/app/routes/admin/admin.component.html
Normal file
@@ -0,0 +1 @@
|
||||
<app-post-editor />
|
23
frontend/src/app/routes/admin/admin.component.spec.ts
Normal file
23
frontend/src/app/routes/admin/admin.component.spec.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { AdminComponent } from './admin.component';
|
||||
|
||||
describe('AdminComponent', () => {
|
||||
let component: AdminComponent;
|
||||
let fixture: ComponentFixture<AdminComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [AdminComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(AdminComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
10
frontend/src/app/routes/admin/admin.component.ts
Normal file
10
frontend/src/app/routes/admin/admin.component.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { PostEditorComponent } from '../../components/post-editor/post-editor.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-admin',
|
||||
imports: [PostEditorComponent],
|
||||
standalone: true,
|
||||
templateUrl: './admin.component.html',
|
||||
})
|
||||
export class AdminComponent {}
|
@@ -2,7 +2,6 @@ import { Component, inject, OnInit, Signal } from '@angular/core';
|
||||
import { PostsService } from '../../shared/services/posts.service';
|
||||
import { NgForOf } from '@angular/common';
|
||||
import { RouterLink } from '@angular/router';
|
||||
import { Post } from '../../shared/services/interfaces/post';
|
||||
|
||||
@Component({
|
||||
selector: 'app-home',
|
||||
|
Reference in New Issue
Block a user