Теперь я работаю с этим, потому что не могу заставить его работать.Я не думаю, что это в любом случае плохо, но все же:
В моем app.component.html у меня есть:
<table border="1">
<!-- ADD HEADERS -->
<tr>
<th><a href="#" (click)="send()">Name</a>
</th>
<th>Goverment form</th>
</tr>
</table>
В моем app.component.ts у меня есть:
}
return 0;
});
}
--------
Data:
-------
export interface Country {
Name:string;
GovernmentForm:string;
}
export class AppComponent {
public Countries: Country[];