context-bar.component.ts 587 Bytes
Newer Older
1
import { Component, OnInit } from '@angular/core';
mdsecurity's avatar
mdsecurity committed
2
import { DataProviderService } from '../data-provider.service';
3
import { Place } from '../place';
mdsecurity's avatar
mdsecurity committed
4
@Component({
mdsecurity's avatar
mdsecurity committed
5
6
7
	selector: 'app-context-bar',
	templateUrl: './context-bar.component.html',
	styleUrls: ['./context-bar.component.scss']
mdsecurity's avatar
mdsecurity committed
8
})
mdsecurity's avatar
mdsecurity committed
9

mdsecurity's avatar
mdsecurity committed
10
export class ContextBarComponent implements OnInit {
mdsecurity's avatar
mdsecurity committed
11
12
13
14
15
16
17
18
19
20
21
22
23
	show = true;
	place: Place = new Place();
	error: any;
	constructor(private dataProvider: DataProviderService) { }

	ngOnInit() {
		this.dataProvider.getContext().subscribe(
			(place) => {
				this.place = place;
			}
		);
	}
	tempf() {
mdsecurity's avatar
mdsecurity committed
24

mdsecurity's avatar
mdsecurity committed
25

mdsecurity's avatar
mdsecurity committed
26
	}
27

mdsecurity's avatar
mdsecurity committed
28
}