@ovh-ux/angular-uirouter-title

2.0.0-beta.0 • Public • Published

angular-uirouter-title

AngularJS module for updating browser title based on the current ui-router state.

Downloads Dependencies Dev Dependencies Gitter

Install

yarn add @ovh-ux/angular-uirouter-title

Usage

import 'angular';
import '@ovh-ux/angular-uirouter-title';

angular
  .module('myApp', [
    'ovhAngularUiRouterTitle',
  ]);

When declaring your ui-router state, you can add a custom $title :

$stateProvider.state("app.item", {
    url: "/app/item",
    resolve: {
        $title: function ($stateParams, $translate) {
            return $translate.instant("item_description_", { name: $stateParams.id });
        }
    }
});

Test

yarn test

Contributing

Always feel free to help out! Whether it's filing bugs and feature requests or working on some of the open issues, our contributing guide will help get you started.

License

BSD-3-Clause © OVH SAS

Dependencies (0)

    Dev Dependencies (12)

    Package Sidebar

    Install

    npm i @ovh-ux/angular-uirouter-title

    Weekly Downloads

    3

    Version

    2.0.0-beta.0

    License

    BSD-3-Clause

    Unpacked Size

    9.81 kB

    Total Files

    8

    Last publish

    Collaborators

    • jisay
    • blary_jp
    • antleblanc
    • cbourgois
    • ovh-ux-cds
    • lizardk
    • ovh
    • marie-j