import { Location } from '@angular/common';
import { Component, OnInit } from '@angular/core';
import { Directive, Input, NgModule } from '@angular/core';
import { FormControl, FormGroup, FormsModule, NgForm, Validators } from '@angular/forms';
// import { UniqueSelectionDispatcher } from '@angular/material';
import { ActivatedRoute, Router } from '@angular/router';

import { IApiError, TokenService } from '../core/shared';
import { ICountry } from '../core/shared/country/country.model';
import { CountryService } from '../core/shared/country/country.service';

import { IUser, IUserCredentials, User } from '../core/shared/user/user.model';
import { UserService } from '../core/shared/user/user.service';

import { TranslateService } from '@ngx-translate/core';
import { ILanguage, ILanguages } from '../core/shared/language/language.model';
import { LanguageService } from '../core/shared/language/language.service';

@Component({
    // providers: [UniqueSelectionDispatcher],
    selector: 'knk-feeds',
    styleUrls: ['./feeds.component.scss'],
    templateUrl: './feeds.component.html'
})
export class FeedsComponent implements OnInit {
    lang: string;
    items: Array<string> = ['item1', 'item2', 'item3', 'item3', 'item3', 'item3', 'item3'];

    constructor(
        private translateService: TranslateService,
        private tokenService: TokenService,
        private route: ActivatedRoute) {
    }
    ngOnInit(): void {
        let langParamName: string = 'lang';
        this.lang = this.route.snapshot.data[langParamName];

        let isTestPropertyName: string = 'test';
    }
}
