I am currently working on an Angular 7 project and I am looking to dynamically set my meta tag content.
<meta http-equiv="content-language" content="en">
To achieve this, I am utilizing the Angular platform-browser
module.
import { Title, Meta } from '@angular/platform-browser';
I have referenced the original documentation from Angular and implemented the following code:
constructor(private meta: Meta) { }
ngOnInit() {
this.meta.updateTag({
httpEquiv: 'content-language', content: this.activeLang
});
}
Upon testing, I noticed that while the tag indeed updates, it appears slightly different from the default format:
The default http-equiv
<meta http-equiv="content-language" content="en">
Post-update
<meta httpequiv="content-language" content="en">
My question is: Are these two formats considered the same?