19 lines
536 B
TypeScript
19 lines
536 B
TypeScript
|
import { Component, OnInit } from '@angular/core';
|
||
|
|
||
|
import { MockingService } from '../../../services/mocking.service';
|
||
|
import { Poll } from '../../../models/poll.model';
|
||
|
|
||
|
@Component({
|
||
|
selector: 'app-navigation',
|
||
|
templateUrl: './navigation.component.html',
|
||
|
styleUrls: ['./navigation.component.scss'],
|
||
|
})
|
||
|
export class NavigationComponent implements OnInit {
|
||
|
public pollsDatabase: Poll[] = [];
|
||
|
constructor(private mockingService: MockingService) {}
|
||
|
|
||
|
ngOnInit(): void {
|
||
|
this.pollsDatabase = this.mockingService.pollsDatabase;
|
||
|
}
|
||
|
}
|