aurelia-meta
A plugin on top of aurelia-router
to handle meta tags of your application, both automatically and manually.
Usage
- Install the plugin
yarn install aurelia-meta
- Make Aurelia aware of your application
aurelia.use.plugin'aurelia-meta';
- Bear in mind to use
PLATFORM.moduleName
if you usewebpack
- It's ready to use, just add your meta tags to your routes as a property, no matter whether it's a parent route or a child one.
config.map;
- If you want to add meta tags manually and not necessarily on route changes, use one of these services: Router, AureliaMetaService and use the appropriate methods for your purpose.
;;
- Keep in mind that you are responsible to remove tags that you have added manually, the plugin only automatically handles tags defined on the routes.
Build
- To build the plugin
clone
this repository and runau build-plugin
- To run the sample project run
npm start