Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
};
StocksListComponent.prototype.gotoDetail = function (stock) {
var link = ['/stock-exchanges', stock.id];
this.router.navigate(link);
};
StocksListComponent.prototype.add = function () {
var link = ['/stock-exchanges/create'];
this.router.navigate(link);
};
StocksListComponent = __decorate([
core_1.Component({
moduleId: module.id,
selector: 'stocks-list',
templateUrl: 'stocks-list.component.html',
styleUrls: ['stocks-list.component.css'],
directives: [grid_list_1.MD_GRID_LIST_DIRECTIVES, button_1.MD_BUTTON_DIRECTIVES, icon_1.MdIcon]
}),
__metadata('design:paramtypes', [stock_service_1.StockService, router_1.Router, platform_browser_1.Title])
], StocksListComponent);
return StocksListComponent;
}());
exports.StocksListComponent = StocksListComponent;