digitalbazaar/bedrock-angular-meta

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

bedrock-angular-meta

A module that improves SEO by dynamically setting meta tags in a Bedrock AngularJS application.

The following meta tag attributes are supported:

Example Angular Controller
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'
}
;


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.