Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

pid/angular-speakingurl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

19 Commits

Repository files navigation

angular-speakingurl

Speaking URL with AngularJS

How do I add this to my project?

You can download angular-speakingurl by:

How to use angular-speakingurl

This module exposes a $speakingurl service that can be used in the code, and a getSlug filter that can be used in templates directly:

MyAngularModule = (function () {
 var myModule = angular.module('my.module', ['angular-speakingurl']);
 myModule.controller('MyController', function ($scope, $speakingurl, model) {
 $scope.model = model;
 $scope urlSlug = $speakingurl.getSlug(model.name);
 });
<ul>
 <li ng-repeat="user in users">
 <a href="/user/{{ user.fullName | getSlug }}" ng-bind="user.fullName"></a>
 </li>
</ul>

Changelog

  • v8.0.2 Bump speakingurl dependency version to ^8.0.2
  • v2.0.0 Match the new speakingurl release see changelog
  • v1.1.0 Following versioning match with speakingurl dependency
  • v1.0.2 Bump speakingurl dependency version to ^1.0.0
  • v1.0.2 Bump speakingurl dependency version to 0.20.1
  • v1.0.1 Fixing a reference to angular-speakingurl module in bower.json
  • v1.0.0 Initial release

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /