"use strict";
(self["webpackChunkapp"] = self["webpackChunkapp"] || []).push([["src_app_news-detail_news-detail_module_ts"],{

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "NewsDetailPageRoutingModule": () => (/* binding */ NewsDetailPageRoutingModule)
/* 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_detail_page__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./news-detail.page */ 5049);




const routes = [
    {
        path: '',
        component: _news_detail_page__WEBPACK_IMPORTED_MODULE_0__.NewsDetailPage
    }
];
let NewsDetailPageRoutingModule = class NewsDetailPageRoutingModule {
};
NewsDetailPageRoutingModule = (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],
    })
], NewsDetailPageRoutingModule);



/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "NewsDetailPageModule": () => (/* binding */ NewsDetailPageModule)
/* 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_detail_routing_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./news-detail-routing.module */ 5400);
/* harmony import */ var _news_detail_page__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./news-detail.page */ 5049);







let NewsDetailPageModule = class NewsDetailPageModule {
};
NewsDetailPageModule = (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_detail_routing_module__WEBPACK_IMPORTED_MODULE_0__.NewsDetailPageRoutingModule
        ],
        declarations: [_news_detail_page__WEBPACK_IMPORTED_MODULE_1__.NewsDetailPage]
    })
], NewsDetailPageModule);



/***/ }),

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

__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "NewsDetailPage": () => (/* binding */ NewsDetailPage)
/* harmony export */ });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! tslib */ 4929);
/* harmony import */ var _news_detail_page_html_ngResource__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./news-detail.page.html?ngResource */ 7741);
/* harmony import */ var _news_detail_page_scss_ngResource__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./news-detail.page.scss?ngResource */ 1765);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ 3184);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ 2816);
/* harmony import */ var _services_wpdata_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../services/wpdata.service */ 9386);
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @ionic/angular */ 3819);







let NewsDetailPage = class NewsDetailPage {
    constructor(wpdataService, route, router, modalController) {
        this.wpdataService = wpdataService;
        this.route = route;
        this.router = router;
        this.modalController = modalController;
        this.showDiss = false;
    }
    ionViewWillEnter() {
        if (this.id != undefined) {
            this.showDiss = true;
        }
        console.log("showDiss ", this.showDiss);
        let id = this.route.snapshot.paramMap.get('id') || this.id;
        console.log("fetching ...");
        console.log(id);
        // this.wpdataService.getNewsDetail(id).subscribe((data) => {
        // console.log();
        this.wpdataService.getNewsDetail(id).subscribe(res => {
            this.data = res;
            console.log(this.data);
        });
    }
    ngOnInit() {
    }
};
NewsDetailPage.ctorParameters = () => [
    { type: _services_wpdata_service__WEBPACK_IMPORTED_MODULE_2__.WpdataService },
    { type: _angular_router__WEBPACK_IMPORTED_MODULE_3__.ActivatedRoute },
    { type: _angular_router__WEBPACK_IMPORTED_MODULE_3__.Router },
    { type: _ionic_angular__WEBPACK_IMPORTED_MODULE_4__.ModalController }
];
NewsDetailPage.propDecorators = {
    id: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_5__.Input }]
};
NewsDetailPage = (0,tslib__WEBPACK_IMPORTED_MODULE_6__.__decorate)([
    (0,_angular_core__WEBPACK_IMPORTED_MODULE_5__.Component)({
        selector: 'app-news-detail',
        template: _news_detail_page_html_ngResource__WEBPACK_IMPORTED_MODULE_0__,
        styles: [_news_detail_page_scss_ngResource__WEBPACK_IMPORTED_MODULE_1__]
    })
], NewsDetailPage);



/***/ }),

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

module.exports = "ion-row {\n  background-color: #fcfcfc !important;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5ld3MtZGV0YWlsLnBhZ2Uuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJLG9DQUFBO0FBQ0oiLCJmaWxlIjoibmV3cy1kZXRhaWwucGFnZS5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiaW9uLXJvdyB7XG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2ZjZmNmYyAhaW1wb3J0YW50O1xufVxuIl19 */";

/***/ }),

/***/ 7741:
/*!**************************************************************!*\
  !*** ./src/app/news-detail/news-detail.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 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-row>\n      <ion-col *ngIf=\"data\">\n        <div [innerHTML]=\"data?.title.rendered\" class=\"title-txt-1\"></div>        \n          <img [src]=\"data.better_featured_image.source_url\" [style.width]=\"'100%'\" />          \n          <div [innerHTML]=\"data.content.rendered\"></div>      \n      </ion-col>\n    </ion-row>\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-detail_news-detail_module_ts.js.map