blob: 71c25499cfb8bb70dcdae0ae1e9c7b1d2216e528 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
import {Component, Inject, OnInit} from '@angular/core';
import { DOCUMENT } from '@angular/common';
@Component({
selector: 'app-home-page',
standalone: false,
templateUrl: './home-page.component.html',
styleUrl: './home-page.component.css'
})
export class HomePageComponent implements OnInit {
constructor(
@Inject(DOCUMENT) private document: Document
) {}
ngOnInit(): void {
console.log(this.document.documentElement);
}
}
|