Giter Site home page Giter Site logo

sibiraj-s / ui-router-page-title Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 2.51 MB

๐Ÿ“Ÿ Page Title directive for angular-ui-router

Home Page: https://sibiraj-s.github.io/ui-router-page-title/

License: MIT License

JavaScript 88.12% CoffeeScript 9.56% Shell 2.32%
ui-router angularjs page-title ui-router-page-title

ui-router-page-title's Introduction

ui-router-page-title Tests

Dynamic Page Title directive for angular-ui-router(>=1.0.0)

Getting Started

Installation

You can directly clone/download here

git clone https://github.com/sibiraj-s/ui-router-page-title.git

or use cdn

Minified:

//cdn.jsdelivr.net/npm/ui-router-page-title@latest/page-title.min.js

Pretty Printed:

//cdn.jsdelivr.net/npm/ui-router-page-title@latest/page-title.js

or

Install via Package managers such as npm or yarn

npm install ui-router-page-title --save
# or
yarn add ui-router-page-title

Usage

Import the modules required for ui-router-page-title. It is necessary to include ui.router for ui-router-page-title to work

<script src="angular.min.js"></script>
<script src="angular-ui-router.min.js"></script>
<script src="../page-title.min.js"></script>

add uiRouterTitle dependency to the module

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

in routes config

$stateProvider.state('home', {
  url: '/home',
  data: {
    pageTitle: 'Home'
  },
  template: '<h3>Home Page!</h3>'
});

and in your html

<title page-title>Page Title</title>

ui-router-page-title's People

Contributors

dependabot[bot] avatar sibiraj-s avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.