1.1.0 • Published 8 years ago

fd-angular-meta v1.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

fd-angular-meta

Build Status

Getting started

import {bootstrap, State, Inject} from 'npm:fd-angular-core';
import {Meta} 'npm:fd-angular-meta';

@State({
  template: `<p>{{ app.message }}</p>`
})
class AppController {

  constructor() {
    this.message = "Hello world!";
  }

  @Meta
  @Inject('$location')
  pushMeta($location) {
    return {
      url: $location.url(),
      description: this.message
    };
  }

}

bootstrap(AppController); // => Promise
<head fd-meta>
  <!-- title will be replaced by fd-meta -->
  <title>My Website</title>
</head>

Options

  • url The cannonical url to the current page (defaults to $location.absUrl())
  • image Link to an image
  • title Title of the current page.
  • author Author of the current page.
  • publisher Publisher of the current page.
  • copyright Copyright holder of the current page.
  • description Description of the current page.
  • siteName Name of the website
  • type og:type (defaults to "website")
  • twitterHandle for the the twitter card.
  • status of the current page (default to 200)
  • distribution of the current page (default to global)
  • revisit-after of the current page (default to 7 days)
1.1.0

8 years ago

1.0.1

9 years ago

0.0.13

9 years ago

1.0.0

9 years ago

0.0.12

9 years ago

0.0.10

9 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago