diff --git a/src/app/article/article.component.ts b/src/app/article/article.component.ts index 22c6c077..1c8301dd 100644 --- a/src/app/article/article.component.ts +++ b/src/app/article/article.component.ts @@ -15,14 +15,6 @@ import { templateUrl: './article.component.html' }) export class ArticleComponent implements OnInit { - constructor( - private route: ActivatedRoute, - private articlesService: ArticlesService, - private commentsService: CommentsService, - private router: Router, - private userService: UserService - ) {} - article: Article; currentUser: User; canModify: boolean; @@ -32,6 +24,14 @@ export class ArticleComponent implements OnInit { isSubmitting = false; isDeleting = false; + constructor( + private route: ActivatedRoute, + private articlesService: ArticlesService, + private commentsService: CommentsService, + private router: Router, + private userService: UserService + ) {} + ngOnInit() { // Retreive the prefetched article this.route.data.subscribe(