Skip to content
This repository has been archived by the owner on Dec 1, 2020. It is now read-only.

zappan/angular-speakingurl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 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

  • v9.0.0 Bump speakingurl dependency version to ^9.0.0
  • 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