"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
var core_1 = require("@angular/core");
//Child Component
var ChildComponent = (function () {
    function ChildComponent() {
        this.hidden = true;
    }
    ChildComponent.prototype.show = function () {
        this.hidden = false;
    };
    ChildComponent.prototype.hide = function () {
        this.hidden = true;
    };
    return ChildComponent;
}());
ChildComponent = __decorate([
    core_1.Component({
        selector: 'app-child',
        template: "\n\t  <div *ngIf=\"!hidden\">\n  \t  <div class=\"backscreen\" (click)=\"hide()\"></div>\n\t    <div class=\"modal\">\n\t      <ng-content></ng-content>\n\t      <div>\n  \t      <button style=\"width:300px; height:100px;\" (click)=\"hide()\">Child Component is triggered</button>\n\t      </div>\n      </div>\n\t  </div>\n  ",
        styles: ["\n    .modal {\n      position: fixed;\n      left: 50%;\n      top: 50%;\n      width:500px;\n      height:500px;\n      transform: translate(-50%, -50%);\n      background-color: #00FFFF;\n      border: 1px solid #ddd;\n      padding: 1rem;\n    }\n\n    .backscreen {\n      position: absolute;\n      background: rgba(0, 0, 0, 0.1);\n      top: 0;\n      bottom: 0;\n      right: 0;\n      left: 0;\n    }\n  "]
    })
], ChildComponent);
exports.ChildComponent = ChildComponent;
//# sourceMappingURL=child.component.js.map