AngularJS bindings for the wonderful speakingurl library
npm install angular-slugifierAngularJS bindings for the wonderful SpeakingURL library
You can download angular-slugifier by:
* Using bower and running bower install angular-slugifier
* Using npm and running npm install angular-slugifier
* Downloading it manually from this repo
This module exposes a $speakingurl service that can be used in the code,
and a angular-slugifier filter that can be used in templates directly:
``
MyAngularModule = (function () {
var myModule = angular.module('my.module', ['angular-slugifier']);
myModule.controller('MyController', function ($scope, $speakingurl, model) {
$scope.model = model;
$scope urlSlug = $speakingurl.slugify(model.name, {});
});
`
``