Name: bedrock-angular-meta
Owner: Digital Bazaar, Inc.
Description: null
Created: 2016-10-20 15:59:47.0
Updated: 2017-09-09 01:41:36.0
Pushed: 2017-05-30 16:16:37.0
Homepage: null
Size: 8
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
A module that improves SEO by dynamically setting meta
tags in a Bedrock AngularJS application.
The following meta
tag attributes are supported:
property
name
itemprop
tion Ctrl($document, $location, brMetaService) {
MetaService.set([
// example `property` attributes
{
property: 'og:description',
content: 'About Page - property'
},
{
property: 'og:image',
content: 'https://example.com/image.jpg'
},
{
property: 'og:title',
content: $document[0].title
},
{
property: 'og:url',
content: $location.absUrl()
},
// example `name` attribute
{
name: 'og:description',
content: 'About Page - name'
}
// example `itemprop` attribute
{
itemprop: 'name',
content: 'About Page - itemprop'
}
;