No puede seleccionar más de 25 temas
Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
Este repositorio está archivado. Puede ver los archivos y clonarlo, pero no puede subir cambios o reportar incidencias ni pedir Pull Requests.
|
- 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();
- }
-
- }
|