Nie możesz wybrać więcej, niż 25 tematów
Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
To repozytorium jest zarchiwizowane. Możesz wyświetlać pliki i je sklonować, ale nie możesz do niego przepychać zmian lub otwierać zgłoszeń/Pull Requestów.
|
- import { Component, OnInit } from '@angular/core';
- import { ActivatedRoute } from '@angular/router';
- import { Subscription } from 'rxjs';
- import { Location } from '@angular/common';
-
- @Component({
- selector: 'app-details',
- templateUrl: './details.component.html',
- styleUrls: ['./details.component.scss']
- })
- export class DetailsComponent implements OnInit {
- selectedSegment: string = 'forum';
- heading: string;
- routeSubscription: Subscription;
- selectedChapter: number = 1;
- showMorePostOptions: boolean = false;
- selectedPost: number;
-
- constructor(
- private route: ActivatedRoute,
- private location: Location
- ) { }
-
- ngOnInit(): void {
- this.routeSubscription = this.route.params.subscribe((params) => {
- this.heading = params['heading'];
- });
- }
-
- ngOnDestroy() {
- this.routeSubscription.unsubscribe();
- }
-
- back() {
- this.location.back();
- }
-
- }
|