Guest User

Untitled

a guest
Oct 21st, 2018
328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var core_1 = require("@angular/core");
  4. var secondclass_model_1 = require("~/shared/secondclass.model");
  5. var data_service_1 = require("~/shared/data.service");
  6. var TestComponent = (function () {
  7.     function TestComponent(dataService) {
  8.         this.dataService = dataService;
  9.         // Use the component constructor to inject providers.
  10.     }
  11.     Object.defineProperty(TestComponent.prototype, "first", {
  12.         get: function () {
  13.             return this._first;
  14.         },
  15.         set: function (value) {
  16.             this._first = value;
  17.         },
  18.         enumerable: true,
  19.         configurable: true
  20.     });
  21.     ;
  22.     Object.defineProperty(TestComponent.prototype, "second", {
  23.         get: function () {
  24.             return this._second;
  25.         },
  26.         set: function (value) {
  27.             this._second = value;
  28.         },
  29.         enumerable: true,
  30.         configurable: true
  31.     });
  32.     ;
  33.     TestComponent.prototype.ngOnInit = function () {
  34.     };
  35.     TestComponent.prototype.itemTap = function (tickettype) {
  36.         var item = new secondclass_model_1.SecondClass({
  37.             foo: "bar"
  38.         });
  39.         this.dataService.addItem(item);
  40.     };
  41.     return TestComponent;
  42. }());
  43. __decorate([
  44.     core_1.Input("first"),
  45.     __metadata("design:type", Object),
  46.     __metadata("design:paramtypes", [typeof (_a = typeof firstclass_model_1.FirstClass !== "undefined" && firstclass_model_1.FirstClass) === "function" && _a || Object])
  47. ], TestComponent.prototype, "first", null);
  48. __decorate([
  49.     core_1.Input("second"),
  50.     __metadata("design:type", Object),
  51.     __metadata("design:paramtypes", [typeof (_b = typeof secondclass_model_1.SecondClass !== "undefined" && secondclass_model_1.SecondClass) === "function" && _b || Object])
  52. ], TestComponent.prototype, "second", null);
  53. TestComponent = __decorate([
  54.     core_1.Component({
  55.         selector: "test-component",
  56.         moduleId: module.id,
  57.         templateUrl: "./test.component.html",
  58.         styleUrls: ['./test.component.css']
  59.     }),
  60.     __metadata("design:paramtypes", [typeof (_c = typeof data_service_1.DataService !== "undefined" && data_service_1.DataService) === "function" && _c || Object])
  61. ], TestComponent);
  62. exports.TestComponent = TestComponent;
  63. var _a, _b, _c;
Advertisement
Add Comment
Please, Sign In to add comment