Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ng-container *ngIf="months2025 | async as months; else nocontent">
- #### RENDERING REGARDLESS OF MONTHS2025 ####
- <div class="column">
- <h1>2025</h1> #### <-- THIS SHOWS UP ####
- <ul>
- <li *ngFor="let month of months">
- <a href={{month.url}}> {{ month.fileName }} </a>
- </li>
- </ul>
- </div>
- </ng-container>
- #### NOT RENDERING WHEN NOCONTENT ####
- <ng-template #nocontent>
- </ng-template>
- export class MinutesComponent {
- monthsArray2025: AngularFirestoreCollection<any>;
- months2025: Observable<any[]>;
- constructor(private afs: AngularFirestore) {
- this.monthsArray2025 = afs.collection<any>('minutes', ref => ref.where('year', '==', 2025);
- this.months2025 = this.monthsArray2025.valueChanges();
- }
- }
Add Comment
Please, Sign In to add comment