You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Deze repo is gearchiveerd. U kunt bestanden bekijken en het klonen, maar niet pushen of problemen/pull-requests openen.
|
- 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();
- }
-
- }
|