Project

General

Profile

1
import { Component, OnInit } from '@angular/core';
2
import {ActivatedRoute} from '@angular/router';
3
import {DomSanitizer} from '@angular/platform-browser';
4
import {DataService} from '../../services/data.service';
5

    
6
@Component({
7
  selector: 'app-continent-overview',
8
  templateUrl: './continent-overview.component.html',
9
})
10

    
11
export class ContinentOverviewComponent implements OnInit {
12

    
13
  continentName: string;
14

    
15
  constructor(private dataService: DataService,
16
              private route: ActivatedRoute,
17
              private sanitizer: DomSanitizer) { }
18

    
19
  ngOnInit(): void {
20
    this.continentName = this.route.snapshot.paramMap.get('continentName');
21
  }
22
}
(2-2/2)