Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- var core_1 = require("@angular/core");
- var secondclass_model_1 = require("~/shared/secondclass.model");
- var data_service_1 = require("~/shared/data.service");
- var TestComponent = (function () {
- function TestComponent(dataService) {
- this.dataService = dataService;
- // Use the component constructor to inject providers.
- }
- Object.defineProperty(TestComponent.prototype, "first", {
- get: function () {
- return this._first;
- },
- set: function (value) {
- this._first = value;
- },
- enumerable: true,
- configurable: true
- });
- ;
- Object.defineProperty(TestComponent.prototype, "second", {
- get: function () {
- return this._second;
- },
- set: function (value) {
- this._second = value;
- },
- enumerable: true,
- configurable: true
- });
- ;
- TestComponent.prototype.ngOnInit = function () {
- };
- TestComponent.prototype.itemTap = function (tickettype) {
- var item = new secondclass_model_1.SecondClass({
- foo: "bar"
- });
- this.dataService.addItem(item);
- };
- return TestComponent;
- }());
- __decorate([
- core_1.Input("first"),
- __metadata("design:type", Object),
- __metadata("design:paramtypes", [typeof (_a = typeof firstclass_model_1.FirstClass !== "undefined" && firstclass_model_1.FirstClass) === "function" && _a || Object])
- ], TestComponent.prototype, "first", null);
- __decorate([
- core_1.Input("second"),
- __metadata("design:type", Object),
- __metadata("design:paramtypes", [typeof (_b = typeof secondclass_model_1.SecondClass !== "undefined" && secondclass_model_1.SecondClass) === "function" && _b || Object])
- ], TestComponent.prototype, "second", null);
- TestComponent = __decorate([
- core_1.Component({
- selector: "test-component",
- moduleId: module.id,
- templateUrl: "./test.component.html",
- styleUrls: ['./test.component.css']
- }),
- __metadata("design:paramtypes", [typeof (_c = typeof data_service_1.DataService !== "undefined" && data_service_1.DataService) === "function" && _c || Object])
- ], TestComponent);
- exports.TestComponent = TestComponent;
- var _a, _b, _c;
Advertisement
Add Comment
Please, Sign In to add comment