nst

ng-state-title

Directive to display title from state route params

Showing:

Popularity

Downloads/wk

1

GitHub Stars

0

Maintenance

Last Commit

5yrs ago

Contributors

1

Package

Dependencies

0

Size (min+gzip)

0.3KB

License

ISC

Type Definitions

Tree-Shakeable

No?

Categories

Readme

ngStateTitle

Directive to display title from state route params

#Installation

Bower

// Get dependency using command line
bower install ngStateTitle --save

// Include in your main HTML file
<script src="/path/to/bower_components/ng-state-title/ngStateTitle.js"></script>

npm

// Get dependency using command line
npm install ng-state-title --save

// Include in your main HTML file
require("ng-state-title");

#Usage

####initialization

in application module
angular.module("myDemoApp", [
    ...
    "ngStateTitle"
    ...
]);
in viewfile
<!DOCTYPE html>
<html ng-app="myDemoApp">
    <head>
        <title page-title>Default</title>
    </head>
</html>

#####in routing myDemoApp.config(function ($stateProvider) { $stateProvider .state("dashboard", { url: "/dashboard", templateUrl: "partials/state1.html", data: { pageTitle: "Dashboard" } }); }

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial