
// Core imports
import { Component, OnInit } from '@angular/core'
import { ActivatedRoute, Params } from '@angular/router'

// Core Services


// Module Services


/**
 * @name ViewfinderComponent
 * @description ViewFinder is a component used to display the current routes and other mechanics.
 * It's a dumb component used for debugging, and should never be part of production level code
 * @author Kasper Hansen
 * @since 21 nov 2019
 */
@Component({
    moduleId: module.id+ '',
    selector: 'app-base-viewfinder',
    templateUrl: './template/t--viewfinder.pug',
    styleUrls: ['sty.viewfinder.scss']
})

export class ViewfinderComponent {

    // ---- Variables ---- \\
    key: string = ''

    constructor(
        private _activatedRoute: ActivatedRoute
    ) { }


    // ---- Lifecycle hooks ---- \\
    ngOnInit() {
        this._activatedRoute.params.subscribe((params: Params) => {
            this.key = params['key']
        })
    }


    // ---- Functions ---- \\
    // * Magic * //

}
