Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meta doesn't get updated. #186

Closed
7 tasks
IzioDev opened this issue Sep 13, 2018 · 0 comments
Closed
7 tasks

meta doesn't get updated. #186

IzioDev opened this issue Sep 13, 2018 · 0 comments
Labels

Comments

@IzioDev
Copy link

IzioDev commented Sep 13, 2018

[ ] Regression (a behavior that used to work and stopped working in a new release)
[ x ] Bug report  <!-- Please check the repository for a similar issue or PR before submitting -->
[ ] Support request => <!-- Please check the repository for a similar issue or PR before submitting -->
[ ] Feature request
[ ] Documentation issue or request

Current behavior
I'm using ngx-core and ngx-meta, setted up like this:

import { MetaModule, MetaLoader, MetaStaticLoader, PageTitlePositioning } from '@ngx-meta/core';
const appRoutes: Routes = [
{
    path: 'about',
    component: AboutComponent,
    data: {
      meta: {
        title: 'Présentation',
        description: 'Venez en savoir plus sur nous, ce que nous apportons au RolePlay!'
      }
    }
  }
export function metaFactory(): MetaLoader {
  return new MetaStaticLoader({
    pageTitlePositioning: PageTitlePositioning.PrependPageTitle,
    pageTitleSeparator: ' - ',
    applicationName: 'PineappleV',
    defaults: {
      title: 'Serveur GTA RP (FiveM)',
      description: "Le meilleur éditeur d'expérience de jeu sur FiveM! PineappleV saura vous satisfaire durant tout votre GamePlay afin de vous apporter un divertissement incomparable! Un GTA RP comme jamais vu, rejoignez-nous",
      'og:image': 'http://localhost:4200/assets/images/logopineapple.png',
      'og:type': 'website',
      'og:locale': 'fr_FR',
      'og:locale:alternate': 'fr_FR'
    }
  });
}
imports: [
RouterModule.forRoot(
      appRoutes,
      { enableTracing: false }
    ),
    MetaModule.forRoot({
      provide: MetaLoader,
      useFactory: (metaFactory)
    })
  ]
})

The issue is... Nothing happend, even the default part! 👎
Expected/desired behavior
If it's possible to explain why this is not working :/

Minimal reproduction of the problem with instructions
Copy-past my code.

Environment

  • Angular version: 6.1.7

  • Browser:

  • [ x ] Chrome (desktop) version XX
  • Chrome (Android) version XX
  • Chrome (iOS) version XX
  • Firefox version XX
  • Safari (desktop) version XX
  • Safari (iOS) version XX
  • IE version XX
  • Edge version XX
@fulls1z3 fulls1z3 changed the title [ISSUE] - meta doesn't get updated. meta doesn't get updated. Oct 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants