text: "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;
  };
  var core_1 = require("@angular/core");
  var hero_1 = require("./hero");
  var HeroFormComponent = (function () {
      function HeroFormComponent() {
          this.lastIndex = 20;
          this.heroes = [new hero_1.Hero(1, 'Dr Muck', 'Really Smart', 'Doctor'),
              new hero_1.Hero(2, 'Dr Duck', 'Super Hot', 'Teacher'),
              new hero_1.Hero(3, 'Dr Chuck', 'Weather Changer', 'Actor')
          ];
          this.powers = ['Really Smart', 'Super Flexible',
              'Super Hot', 'Weather Changer'];
          this.model = new hero_1.Hero(18, 'Dr IQ', this.powers[0], 'Chuck Overstreet');
          this.submitted = false;
      }
      HeroFormComponent.prototype.onSubmit = function () { this.submitted = true; };
      HeroFormComponent.prototype.newHero = function () {
          this.model = new hero_1.Hero(++this.lastIndex, '', '');
      };
      HeroFormComponent.prototype.AddHero = function () {
          this.heroes.push(this.model);
      };
      HeroFormComponent.prototype.initializeForEdit = function (hero) {
          this.model = hero;
      };
      return HeroFormComponent;
  }());
  HeroFormComponent = __decorate([
      core_1.Component({
          selector: 'hero-form',
          templateUrl: './hero-form.component.html',
          styleUrls: ['./forms.css']
      })
  ], HeroFormComponent);
  exports.HeroFormComponent = HeroFormComponent;
  //# sourceMappingURL=hero-form.component.js.map