Guest User

Untitled

a guest
Dec 16th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. import * as tslib_1 from 'tslib';
  2. import { Component, Input, Output, EventEmitter } from '@angular/core';
  3. import * as i0 from '@angular/core';
  4. var _c0 = [1, 'click'];
  5. var ChildComponent = /** @class */ (function() {
  6. function ChildComponent() {
  7. this.clickEv = new EventEmitter();
  8. }
  9. ChildComponent.ngComponentDef = i0.ɵdefineComponent({
  10. type: ChildComponent,
  11. selectors: [['app-child']],
  12. factory: function ChildComponent_Factory(t) {
  13. return new (t || ChildComponent)();
  14. },
  15. inputs: { value: 'value' },
  16. outputs: { clickEv: 'clickEv' },
  17. consts: 4,
  18. vars: 1,
  19. template: function ChildComponent_Template(rf, ctx) {
  20. if (rf & 1) {
  21. i0.ɵelementStart(0, 'p');
  22. i0.ɵtext(1);
  23. i0.ɵelementEnd();
  24. i0.ɵelementStart(2, 'button', _c0);
  25. i0.ɵlistener(
  26. 'click',
  27. function ChildComponent_Template_button_click_listener($event) {
  28. return ctx.clickEv.emit();
  29. }
  30. );
  31. i0.ɵtext(3, 'increment');
  32. i0.ɵelementEnd();
  33. }
  34. if (rf & 2) {
  35. i0.ɵtextBinding(1, i0.ɵinterpolation1('', ctx.value, ''));
  36. }
  37. },
  38. encapsulation: 2
  39. });
  40. tslib_1.__decorate(
  41. [Input(), tslib_1.__metadata('design:type', String)],
  42. ChildComponent.prototype,
  43. 'value',
  44. void 0
  45. );
  46. tslib_1.__decorate(
  47. [Output(), tslib_1.__metadata('design:type', EventEmitter)],
  48. ChildComponent.prototype,
  49. 'clickEv',
  50. void 0
  51. );
  52. ChildComponent = tslib_1.__decorate(
  53. [
  54. Component({
  55. selector: 'app-child',
  56. templateUrl: './child.component.html',
  57. styleUrls: ['./child.component.css']
  58. })
  59. ],
  60. ChildComponent
  61. );
  62. return ChildComponent;
  63. })();
  64. export { ChildComponent };
  65. //# sourceMappingURL=child.component.js.map
Add Comment
Please, Sign In to add comment