Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

282
Views
Genere dinámicamente etiquetas Open Graph en MEAN stack. (Angular 2+)

Estoy a punto de generar diferentes etiquetas OG para páginas como detalles de artículos. Utilizo el módulo https://github.com/nglibs/meta para Angular para generar las etiquetas meta para las páginas, funciona bien en el navegador, pero el raspador de Facebook carga el archivo index.html original y no muestra nada de las etiquetas generadas. . Como investigué, debería haber alguna lógica del lado del servidor para generar las etiquetas meta, y no usar JavaScript para generar las etiquetas meta, entonces Facebook podría usar la meta correcta. ¿Hay alguna solución para este problema en la pila MEAN? (y luego no entiendo por qué usar el módulo @nglibs/meta para generar metaetiquetas og, ya que son inútiles de esta manera)

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Puede usar plantillas ejs para representar el archivo de índice. como abajo. Para más estudio en ejs siga este enlace

 <!doctype html> <html lang="en" xmlns="http://www.w3.org/1999/html"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, maximum-scale=1.0, minimum-scale=1.0, initial-scale=1.0" /> <link href="/css/somecss.css" rel="stylesheet" /> <title>Your site</title> <meta content="<%- metaTagsDescription %>" name="description" /> <meta content="<%- metaTagsRobots %>" name="robots" /> <meta content="<%- metaTagsKeyWords %>" name="keywords" /> <!-- Facebook meta tags--> <meta property="og:type" content="<%- metaTagsType %>" /> <meta property="og:title" content="<%- metaTagsTitle %>" /> <meta property="og:image" content="<%- metaTagsImg %>" /> <meta property="og:url" content="<%- metaTagsUrl %>" /> <meta property="og:description" content="<%- metaTagsDescription %>" /> </head> <body > <section id="app"></section> <script src="/bundle.js"></script> </body> </html>

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!