Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.submitted = true;
this.messages.push(this.message);
};
Object.defineProperty(ContactComponent.prototype, "diagnostic", {
// TODO: Remove this when we're done
get: function () { return JSON.stringify(this.message); },
enumerable: true,
configurable: true
});
ContactComponent = __decorate([
core_1.Component({
moduleId: module.id,
selector: 'contact-us',
templateUrl: 'contact.component.html',
styleUrls: ['contact.component.css'],
directives: [button_1.MD_BUTTON_DIRECTIVES, card_1.MD_CARD_DIRECTIVES, icon_1.MD_ICON_DIRECTIVES, input_1.MD_INPUT_DIRECTIVES]
}),
__metadata('design:paramtypes', [angularfire2_1.AngularFire])
], ContactComponent);
return ContactComponent;
}());
exports.ContactComponent = ContactComponent;
function TeamComponent(teamService, titleService) {
this.teamService = teamService;
this.titleService = titleService;
}
TeamComponent.prototype.ngOnInit = function () {
this.team = this.teamService.getTeam();
this.titleService.setTitle('About Team');
};
TeamComponent = __decorate([
core_1.Component({
moduleId: module.id,
selector: 'about-team',
templateUrl: 'team.component.html',
styleUrls: ['team.component.css'],
providers: [team_service_1.TeamService],
directives: [card_1.MD_CARD_DIRECTIVES]
}),
__metadata('design:paramtypes', [team_service_1.TeamService, platform_browser_1.Title])
], TeamComponent);
return TeamComponent;
}());
exports.TeamComponent = TeamComponent;
};
CompaniesListComponent.prototype.gotoDetail = function (company) {
var link = ['/companies/', company.$key];
this.router.navigate(link);
};
__decorate([
core_1.Input(),
__metadata('design:type', angularfire2_1.FirebaseListObservable)
], CompaniesListComponent.prototype, "companies", void 0);
CompaniesListComponent = __decorate([
core_1.Component({
moduleId: module.id,
selector: 'companies-list',
templateUrl: 'companies-list.component.html',
styleUrls: ['companies-list.component.css'],
directives: [card_1.MD_CARD_DIRECTIVES]
}),
__metadata('design:paramtypes', [companies_service_1.CompaniesService, router_1.Router, platform_browser_1.Title])
], CompaniesListComponent);
return CompaniesListComponent;
}());
exports.CompaniesListComponent = CompaniesListComponent;
}
};
LeadersListComponent.prototype.gotoDetail = function (leader) {
var link = ['/leaders/', leader.$key];
this.router.navigate(link);
};
__decorate([
core_1.Input(),
__metadata('design:type', Object)
], LeadersListComponent.prototype, "leaders", void 0);
LeadersListComponent = __decorate([
core_1.Component({
moduleId: module.id,
selector: 'leaders-list',
templateUrl: 'leaders-list.component.html',
directives: [card_1.MD_CARD_DIRECTIVES]
}),
__metadata('design:paramtypes', [leaders_service_1.LeadersService, router_1.Router, platform_browser_1.Title])
], LeadersListComponent);
return LeadersListComponent;
}());
exports.LeadersListComponent = LeadersListComponent;
var BrokersComponent = (function () {
function BrokersComponent(teamService, titleService) {
this.teamService = teamService;
this.titleService = titleService;
}
BrokersComponent.prototype.ngOnInit = function () {
this.brokers = this.teamService.getTeam();
this.titleService.setTitle('Brokers');
};
BrokersComponent = __decorate([
core_1.Component({
moduleId: module.id,
templateUrl: 'brokers.component.html',
styleUrls: ['brokers.component.css'],
providers: [broker_service_1.BrokerService],
directives: [card_1.MD_CARD_DIRECTIVES]
}),
__metadata('design:paramtypes', [broker_service_1.BrokerService, platform_browser_1.Title])
], BrokersComponent);
return BrokersComponent;
}());
exports.BrokersComponent = BrokersComponent;