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 tags API call fails #185

Closed
yura-moryliak opened this issue Aug 30, 2018 · 2 comments
Closed

meta tags API call fails #185

yura-moryliak opened this issue Aug 30, 2018 · 2 comments
Labels

Comments

@yura-moryliak
Copy link

I'm submitting a ... (check one with "x")

[ ] 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

Expected/desired behavior

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Environment

  • Angular version: 6.0.8

The reason i opened this issue, is that there is exist a small bug for programmatic setTag

Explanation:

When i'm calling API server to fetch data, for example for user data, i'm trying to set tags as description and og:description

And i'm facing problem, there is no existing metaTags in source code for settled meta tags

I opened issue on stackoverflow and i attach link here for my question
https://stackoverflow.com/questions/52094471/angular-6-ssr-ngx-meta-live-server

I tried to use also resolver but with no success

in example of this librariy there is example how to set tags programmatically

ngOnInit() {
this.item = //HTTP GET for "item" in the repository
this.meta.setTitle(Page for ${this.item.name});
this.meta.setTag('og:image', this.item.imageUrl);
}

And the last note:
All code is working great on localost:4000 handled by SSR express server
But after deploying application on Heroku server it does not work as expected

@SonicReal
Copy link

Same problem...

@fulls1z3 fulls1z3 changed the title API call meta tags failed meta tags API call fails Dec 24, 2018
@junaidbinsarfraz
Copy link

Same problem.
Any update on it ?

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

4 participants