1+ < < < << << HEAD
12import {
23 ChangeDetectionStrategy ,
34 Component ,
@@ -30,10 +31,19 @@ import { DynamicDialogService } from '../../../shared/dynamic-dialog/dynamic-dia
3031import { ModalConfig } from '../../../shared/_models/modal-config.intreface' ;
3132import { AddImageComponent } from './add-image/add-image.component' ;
3233import { AddImageForm } from './add-image/add-image-controls.interface' ;
34+ === === =
35+ import { ChangeDetectionStrategy , Component , inject } from '@angular/core' ;
36+ import { FormBuilder , FormGroup , ReactiveFormsModule , Validators } from '@angular/forms' ;
37+ import { ApiService } from '../../_services/api.service' ;
38+ import { Firestore , FirestoreModule } from '@angular/fire/firestore' ;
39+ import { HttpClient } from '@angular/common/http' ;
40+ import { AsyncPipe } from '@angular/common' ;
41+ >>> >>> > ab739b9 ( nothing special )
3342
3443@Component ( {
3544 selector : 'blog-add-post' ,
3645 standalone : true ,
46+ < << << << HEAD
3747 imports : [
3848 ReactiveFormsModule ,
3949 FirestoreModule ,
@@ -43,6 +53,10 @@ import { AddImageForm } from './add-image/add-image-controls.interface';
4353 RouterModule ,
4454 ] ,
4555 providers : [ AdminApiService , NgModel ] ,
56+ = === ===
57+ imports : [ ReactiveFormsModule , FirestoreModule , AsyncPipe ] ,
58+ providers : [ ApiService , HttpClient ] ,
59+ > >>> >>> ab739b9 ( nothing special )
4660 templateUrl : './add-post.component.html' ,
4761 styleUrl : './add-post.component.scss' ,
4862 schemas : [ CUSTOM_ELEMENTS_SCHEMA ] ,
@@ -65,10 +79,14 @@ export class AddPostComponent implements OnInit {
6579 this . blogForm = this . fb . group ( {
6680 title : [ '' , [ Validators . required ] ] ,
6781 content : [ '' , [ Validators . required ] ] ,
82+ < << << << HEAD
6883 date : new Timestamp ( 0 , 0 ) ,
6984 description : [ null ] ,
7085 isDraft : [ false ] ,
7186 } ) as FormGroup < PostForm > ;
87+ = === ===
88+ } ) ;
89+ > >>> >>> ab739b9 ( nothing special )
7290 }
7391
7492 ngOnInit ( ) : void {
0 commit comments