Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ngApp/src/app/special-events/special-events.component.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="row mt-5">
<div class="row mt-5" *ngIf="validate">
<div class="col-md-4 mb-3" *ngFor="let event of specialEvents">
<div class="card text-center">
<div class="card-body">
Expand Down
7 changes: 5 additions & 2 deletions ngApp/src/app/special-events/special-events.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,18 @@ import { Router } from '@angular/router'
export class SpecialEventsComponent implements OnInit {

specialEvents = []

validate:Boolean = false
constructor(private _eventService: EventService,
private _router: Router) { }


ngOnInit() {
this._eventService.getSpecialEvents()
.subscribe(
res => this.specialEvents = res,
(res) => {
this.specialEvents = res
this.validate = true;
},
err => {
if( err instanceof HttpErrorResponse ) {
if (err.status === 401) {
Expand Down