import { Component , OnInit } from '@angular/core' ; @ Component ( { selector : 'cmdb-object-qr' , templateUrl : './object-qr.component.html' , styleUrls : [ './object-qr.component.scss' ] } ) export class ObjectQrComponent implements OnInit { public urlContent : string = null ; public ngOnInit ( ) { this . urlContent = window . location . href ; } }