pdnsmanager/frontend/src/app/pages/edit-auth/edit-auth.component.ts
2018-04-10 16:16:11 +02:00

20 lines
466 B
TypeScript

import { ActivatedRoute } from '@angular/router';
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-edit-auth',
templateUrl: './edit-auth.component.html',
styleUrls: ['./edit-auth.component.scss']
})
export class EditAuthComponent implements OnInit {
public type: string;
constructor(private route: ActivatedRoute) { }
ngOnInit() {
this.route.data.subscribe((data) => this.type = data.type);
}
}