-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Labels
Description
I'm submitting a ... (check one with "x")
[ ] Support request => <!-- Please check the repository for a similar issue or PR before submitting -->
Current behavior
Expected/desired behavior
Minimal reproduction of the problem with instructions
import { MetaService } from '@ngx-meta/core';
import { FirstService } from './first.service';
export class FirstComponent {
firstObj : any = {};
constructor(private _metaService: MetaService,
private _firstService: FirstService) {}
ngOnInit() {
this._firstService.getQuestionOfTheWeek(0).subscribe(
res => firstObj = res,
error => this.errorGetRequest(error),
() => this.successGetRequest()
);
}
successGetRequest(){
this._metaService.setTag('og:description', this.firstObj .Desc);
this._metaService.setTag('og:image', this.firstObj .ImageURL);
}
}
What is the motivation / use case for changing the behavior?
Meta tag are getting added it is visible in the chrome developer tool but facebook does not recognize.
Environment
- Angular version: 4.0.0
- Browser:
- 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
- For Tooling issues:
- Node version: XX
- Platform:
- Others:
mark922