diff --git a/src/app/app.component.html b/src/app/app.component.html
index e0b5d4e..b187592 100644
--- a/src/app/app.component.html
+++ b/src/app/app.component.html
@@ -1,24 +1,24 @@
-
+
- @for(card of cards; track cards) {
+ @for(card of cardService.cardsInCurrentSet; track card) {
}
- @for(card of cards; track cards) {
+ @for(card of cardService.cardsInCurrentSet;; track card) {
}
- @for(card of cards; track cards) {
+ @for(card of cardService.cardsInCurrentSet;; track card) {
}
diff --git a/src/app/app.component.ts b/src/app/app.component.ts
index 4cc40b4..4d02950 100644
--- a/src/app/app.component.ts
+++ b/src/app/app.component.ts
@@ -28,8 +28,7 @@ export class AppComponent {
constructor(
private sheets: googleSheetService,
private setService: SetService,
- private cardService: CardService,
- private httpClient: HttpClient,
+ public cardService: CardService,
@Inject(DOCUMENT) private document: Document
)
{}
@@ -41,7 +40,8 @@ export class AppComponent {
windowScrolled = false;
- ngOnInit() {
+ ngOnInit()
+ {
window.addEventListener('scroll', () => {
this.windowScrolled = window.scrollY !== 0;
});
@@ -52,7 +52,7 @@ export class AppComponent {
if(this.sets != undefined)
{
this.selectedSet = this.sets[0]
- this.sheets.getSet(this.sets[0]).subscribe( values => {
+ this.sheets.getSet(this.selectedSet).subscribe( values => {
let bob = values as any;
this.selectedSet.total = bob.values.length;
this.cards = this.cardService.convertToCardInfo(this.selectedSet, bob.values as Array