Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (37 sloc) 1.23 KB
The CombatantDetail component, responsible for rendering data about an
already loaded combatant.
Rendered by the Combatant component.
import { Component, Input } from '@angular/core';
selector: 'combatantdetail',
template: `
<a href="{{}}" target="_blank">{{}}</a> has {{data.repos.stars}} stars across
{{data.repos.repos}} repos.
<span *ngIf="">
The most popular repo is <a href="{{}}/{{}}" target="_blank">
{{}}</a> with {{data.repos.mostStarred.stargazers_count}} stars.
<div *ngIf="data.repos.repos">
<p>Here's a language breakdown:</p>
<tr *ngFor="let lang of languageKeys">
export class CombatantDetailComponent {
@Input() data
get languageKeys(){
let count =;
return Object.keys(count).sort((l1,l2)=> count[l1] > count[l2] ? -1 : 1 );