Ember-seo-meta-tags
This Ember-CLI addon is used to add/change meta-tags and title on different pages of your single page application and thus make your website SEO friendly.
Installation
ember install ember-seo-meta-tags
To make it work follow the given steps
- Inside any route add the title and metaTags properties and it will be reflected in your single page application accordingly. you can even set these properties dynamically and this addon will pick those up for you.
- If title and meta tags are going to be dynamically set, then we advise you to set these in the afterModel hook in your route. If you want to set it later then you can use a service like prerender.io to make sure your meta tags and title are picked up by crawlers.
- If you want a single place where you can list all title and metaTags information related to all your routes then
- Open a service named
tags-data
inside your hosting application. This service will be auto generated when you install this addon. - Add data in service in the format given below
- Open a service named
; Service;
Examples
Usage inside routes
// hostingApp/routes/homeroute;
Usage inside routes with dynamic data
// hostingApp/routes/homeroute
Usage with service
Service;
Demo Application
We have hosted a demo application where you can see this addon in action.