"use strict";
(self["webpackChunkapp"] = self["webpackChunkapp"] || []).push([["src_app_news_news_module_ts"],{

/***/ 8421:
/*!*********************************************!*\
  !*** ./src/app/news/news-routing.module.ts ***!
  \*********************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "NewsPageRoutingModule": () => (/* binding */ NewsPageRoutingModule)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ 4929);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 3184);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ 2816);
/* harmony import */ var _news_page__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./news.page */ 3066);




const routes = [
    {
        path: '',
        component: _news_page__WEBPACK_IMPORTED_MODULE_0__.NewsPage
    }
];
let NewsPageRoutingModule = class NewsPageRoutingModule {
};
NewsPageRoutingModule = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
    (0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.NgModule)({
        imports: [_angular_router__WEBPACK_IMPORTED_MODULE_3__.RouterModule.forChild(routes)],
        exports: [_angular_router__WEBPACK_IMPORTED_MODULE_3__.RouterModule],
    })
], NewsPageRoutingModule);



/***/ }),

/***/ 1926:
/*!*************************************!*\
  !*** ./src/app/news/news.module.ts ***!
  \*************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "NewsPageModule": () => (/* binding */ NewsPageModule)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ 4929);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 3184);
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ 6362);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/forms */ 587);
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @ionic/angular */ 3819);
/* harmony import */ var _news_routing_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./news-routing.module */ 8421);
/* harmony import */ var _news_page__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./news.page */ 3066);
/* harmony import */ var _fortawesome_angular_fontawesome__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @fortawesome/angular-fontawesome */ 9397);








let NewsPageModule = class NewsPageModule {
};
NewsPageModule = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
    (0,_angular_core__WEBPACK_IMPORTED_MODULE_3__.NgModule)({
        imports: [
            _angular_common__WEBPACK_IMPORTED_MODULE_4__.CommonModule,
            _angular_forms__WEBPACK_IMPORTED_MODULE_5__.FormsModule,
            _ionic_angular__WEBPACK_IMPORTED_MODULE_6__.IonicModule,
            _news_routing_module__WEBPACK_IMPORTED_MODULE_0__.NewsPageRoutingModule,
            _fortawesome_angular_fontawesome__WEBPACK_IMPORTED_MODULE_7__.FontAwesomeModule,
        ],
        declarations: [_news_page__WEBPACK_IMPORTED_MODULE_1__.NewsPage]
    })
], NewsPageModule);



/***/ }),

/***/ 3066:
/*!***********************************!*\
  !*** ./src/app/news/news.page.ts ***!
  \***********************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "NewsPage": () => (/* binding */ NewsPage)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! tslib */ 4929);
/* harmony import */ var _news_page_html_ngResource__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./news.page.html?ngResource */ 2650);
/* harmony import */ var _news_page_scss_ngResource__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./news.page.scss?ngResource */ 2136);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 3184);
/* harmony import */ var _services_wpdata_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../services/wpdata.service */ 9386);





let NewsPage = class NewsPage {
    constructor(wpgetdataService) {
        this.wpgetdataService = wpgetdataService;
        // newsdata: any;
        // data: Observable;
        this.newsdata = [];
    }
    ngOnInit() {
    }
    ionViewWillEnter() {
        // this.wpgetdataService.getAllNews().subscribe((data => {
        //   console.log("get News:");
        //   console.log(data);
        //   this.newsdata = JSON.parse(data.data);
        this.wpgetdataService.getAllNews().subscribe((data) => {
            this.newsdata = data;
            console.log('load Lineup Data');
            console.log(this.newsdata);
        });
    }
};
NewsPage.ctorParameters = () => [
    { type: _services_wpdata_service__WEBPACK_IMPORTED_MODULE_2__.WpdataService }
];
NewsPage = (0,tslib__WEBPACK_IMPORTED_MODULE_3__.__decorate)([
    (0,_angular_core__WEBPACK_IMPORTED_MODULE_4__.Component)({
        selector: 'app-news',
        template: _news_page_html_ngResource__WEBPACK_IMPORTED_MODULE_0__,
        styles: [_news_page_scss_ngResource__WEBPACK_IMPORTED_MODULE_1__]
    })
], NewsPage);



/***/ }),

/***/ 2136:
/*!************************************************!*\
  !*** ./src/app/news/news.page.scss?ngResource ***!
  \************************************************/
/***/ ((module) => {

module.exports = "ion-row {\n  background-color: #fcfcfc !important;\n}\n\n.list-card-margin {\n  margin: 0 0 10px 0;\n}\n\nion-card-header {\n  padding: 5px 10px;\n}\n\n.title-txt-1 {\n  font-family: Prompt Reg !important;\n  font-size: 1.3em;\n  line-height: 1.3em;\n  color: darkorange;\n}\n\nion-card-content {\n  padding: 0px 10px 10px;\n}\n\n.content-txt-1 {\n  font-family: K2D !important;\n  font-size: 1em;\n  line-height: 1.3em;\n  color: darkslategray;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5ld3MucGFnZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksb0NBQUE7QUFDSjs7QUFFQTtFQUNJLGtCQUFBO0FBQ0o7O0FBRUE7RUFDSSxpQkFBQTtBQUNKOztBQUVBO0VBQ0ksa0NBQUE7RUFDQSxnQkFBQTtFQUNBLGtCQUFBO0VBQ0EsaUJBQUE7QUFDSjs7QUFFQTtFQUNJLHNCQUFBO0FBQ0o7O0FBRUE7RUFDSSwyQkFBQTtFQUNBLGNBQUE7RUFDQSxrQkFBQTtFQUNBLG9CQUFBO0FBQ0oiLCJmaWxlIjoibmV3cy5wYWdlLnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyJpb24tcm93IHtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmNmY2ZjICFpbXBvcnRhbnQ7XG59XG5cbi5saXN0LWNhcmQtbWFyZ2luIHtcbiAgICBtYXJnaW46IDAgMCAxMHB4IDA7XG59XG5cbmlvbi1jYXJkLWhlYWRlciB7XG4gICAgcGFkZGluZzogNXB4IDEwcHg7XG59XG5cbi50aXRsZS10eHQtMSB7XG4gICAgZm9udC1mYW1pbHk6IFByb21wdCBSZWcgIWltcG9ydGFudDtcbiAgICBmb250LXNpemU6IDEuM2VtO1xuICAgIGxpbmUtaGVpZ2h0OiAxLjNlbTtcbiAgICBjb2xvcjogZGFya29yYW5nZTtcbn1cblxuaW9uLWNhcmQtY29udGVudCB7XG4gICAgcGFkZGluZzogMHB4IDEwcHggMTBweDtcbn1cblxuLmNvbnRlbnQtdHh0LTEge1xuICAgIGZvbnQtZmFtaWx5OiBLMkQgIWltcG9ydGFudDtcbiAgICBmb250LXNpemU6IDFlbTtcbiAgICBsaW5lLWhlaWdodDogMS4zZW07XG4gICAgY29sb3I6IGRhcmtzbGF0ZWdyYXk7XG59XG5cblxuIl19 */";

/***/ }),

/***/ 2650:
/*!************************************************!*\
  !*** ./src/app/news/news.page.html?ngResource ***!
  \************************************************/
/***/ ((module) => {

module.exports = "<ion-header>\n  <ion-toolbar class=\"toolbar-bg-color\">\n    <ion-buttons slot=\"end\">\n      <ion-menu-button></ion-menu-button>\n    </ion-buttons>\n    <img src=\"../../../assets/icon/logo-fm99.png\" class=\"head-img\">\n  </ion-toolbar>\n</ion-header>\n\n<ion-content>\n  <ion-grid>\n    <ion-row>\n      <ion-col>\n        <h2>ข่าวกีฬา</h2>\n      </ion-col>\n    </ion-row>\n  </ion-grid>\n  <ion-grid>\n    <ion-row>\n      <ion-col class=\"ion-no-padding\">\n        <img src=\"../../../assets/img-static/banner-320x50.jpeg\" alt=\"\">\n      </ion-col>\n    </ion-row>\n  </ion-grid>\n  <ion-grid>\n    <ion-card *ngFor=\"let news of newsdata\" class=\"list-card-margin\">\n      <img src=\"{{news.better_featured_image.source_url}}\" />\n      <ion-card-header>\n        <a [routerLink]=\"['../news-detail' , news.id]\">\n          <ion-card-title class=\"title-txt-1\" [innerHTML]=\"news.title.rendered\"></ion-card-title>\n        </a>\n      </ion-card-header>\n      <ion-card-content text-justify [innerHTML]=\"news.excerpt.rendered\" class=\"content-txt-1\"></ion-card-content>\n    </ion-card>\n  </ion-grid>\n  <ion-grid>\n    <img src=\"../../../assets/img-static/banner-320x100.jpeg\" alt=\"\">\n  </ion-grid>\n</ion-content>";

/***/ })

}]);
//# sourceMappingURL=src_app_news_news_module_ts.js.map