Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import * as tslib_1 from 'tslib';
- import { Component, Input, Output, EventEmitter } from '@angular/core';
- import * as i0 from '@angular/core';
- var _c0 = [1, 'click'];
- var ChildComponent = /** @class */ (function() {
- function ChildComponent() {
- this.clickEv = new EventEmitter();
- }
- ChildComponent.ngComponentDef = i0.ɵdefineComponent({
- type: ChildComponent,
- selectors: [['app-child']],
- factory: function ChildComponent_Factory(t) {
- return new (t || ChildComponent)();
- },
- inputs: { value: 'value' },
- outputs: { clickEv: 'clickEv' },
- consts: 4,
- vars: 1,
- template: function ChildComponent_Template(rf, ctx) {
- if (rf & 1) {
- i0.ɵelementStart(0, 'p');
- i0.ɵtext(1);
- i0.ɵelementEnd();
- i0.ɵelementStart(2, 'button', _c0);
- i0.ɵlistener(
- 'click',
- function ChildComponent_Template_button_click_listener($event) {
- return ctx.clickEv.emit();
- }
- );
- i0.ɵtext(3, 'increment');
- i0.ɵelementEnd();
- }
- if (rf & 2) {
- i0.ɵtextBinding(1, i0.ɵinterpolation1('', ctx.value, ''));
- }
- },
- encapsulation: 2
- });
- tslib_1.__decorate(
- [Input(), tslib_1.__metadata('design:type', String)],
- ChildComponent.prototype,
- 'value',
- void 0
- );
- tslib_1.__decorate(
- [Output(), tslib_1.__metadata('design:type', EventEmitter)],
- ChildComponent.prototype,
- 'clickEv',
- void 0
- );
- ChildComponent = tslib_1.__decorate(
- [
- Component({
- selector: 'app-child',
- templateUrl: './child.component.html',
- styleUrls: ['./child.component.css']
- })
- ],
- ChildComponent
- );
- return ChildComponent;
- })();
- export { ChildComponent };
- //# sourceMappingURL=child.component.js.map
Add Comment
Please, Sign In to add comment