|
@@ -1,17 +1,17 @@
|
1
|
1
|
import { Component, Input, OnInit } from '@angular/core';
|
2
|
2
|
|
3
|
3
|
@Component({
|
4
|
|
- selector: 'app-post',
|
5
|
|
- templateUrl: './post.component.html',
|
6
|
|
- styleUrls: ['./post.component.css']
|
|
4
|
+ selector: 'app-post',
|
|
5
|
+ templateUrl: './post.component.html',
|
|
6
|
+ styleUrls: ['./post.component.css']
|
7
|
7
|
})
|
8
|
8
|
|
9
|
9
|
export class PostComponent implements OnInit {
|
10
|
10
|
@Input()post: any;
|
11
|
11
|
|
12
|
|
- constructor() { }
|
|
12
|
+ constructor() { }
|
13
|
13
|
|
14
|
|
- ngOnInit() {
|
15
|
|
- }
|
|
14
|
+ ngOnInit() {
|
|
15
|
+ }
|
16
|
16
|
|
17
|
17
|
}
|