import { Component, OnInit } from ‘@angular/core’;
import { DataService } from ‘../data.service’;
import { ActivatedRoute } from ‘@angular/router’;
import { Router, NavigationEnd } from ‘@angular/router’;
wordpress-seo
domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init
action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/clients/client1/web2/web/wp-includes/functions.php on line 6114Publicado em Terca-Feira, 09 de Abril de 2024 Atualizado em 09/04/2024 às 09:50
por Rogério Duarteimport { Component, OnInit } from ‘@angular/core’;
import { DataService } from ‘../data.service’;
import { ActivatedRoute } from ‘@angular/router’;
import { Router, NavigationEnd } from ‘@angular/router’;
@Component({
selector: ‘app-showresult’,
templateUrl: ‘./showresult.component.html’,
styleUrls: [‘./showresult.component.css’]
})
export class ShowresultComponent implements OnInit {
constructor(private dataService: DataService,private route: ActivatedRoute,private router: Router) { }
result:any;
code:string;
ngOnInit() {
this.result = this.dataService.result;
this.code = this.route.snapshot.paramMap.get(‘code’);
console.log(this.result);
}
goToLink(url: string){
window.open(url, “_blank”);
}
}