|
|
@@ -1,7 +1,7 @@ |
|
|
|
import { Component, OnInit, ViewChild } from '@angular/core'; |
|
|
|
import { IonSlides, ModalController } from '@ionic/angular'; |
|
|
|
import { Router } from '@angular/router'; |
|
|
|
import { ChatPage } from '../chat/chat.page'; |
|
|
|
import { NewsService } from '../services/news.service'; |
|
|
|
|
|
|
|
export type INews = { |
|
|
|
id: string | number, |
|
|
@@ -50,9 +50,12 @@ export class HomePage implements OnInit { |
|
|
|
constructor( |
|
|
|
private router: Router, |
|
|
|
private modalController: ModalController, |
|
|
|
private newsService: NewsService |
|
|
|
) { } |
|
|
|
|
|
|
|
ngOnInit() { |
|
|
|
this.newsService.getArticles().then((data) => console.log(data)); |
|
|
|
|
|
|
|
this.newsData = [{ |
|
|
|
id: 1, |
|
|
|
image: 'https://www.kxip.in/static-assets/waf-images/c3/b2/7d/16-9/DWWfHZsFg1.jpg', |
|
|
|