Skip to content
This repository was archived by the owner on Nov 23, 2024. It is now read-only.

Commit c0c97e4

Browse files
author
kepro
committed
readme
1 parent 1591536 commit c0c97e4

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,16 @@ Add the txx.diacritics module as a dependency to your application module:
3131
```js
3232
var myAppModule = angular.module('MyApp', ['txx.diacritics'])
3333
.controller('myController', function($scope, removeDiacritics) {
34+
var myValue = 'my +ľščťžťžáí!@#$#$^&*';
35+
var replaceWith = '-';
36+
37+
// this will return my +lsctztzai!@#$#$^&*
3438
$scope.replace = function(){
35-
removeDiacritics.replace('my +ľščťžťžáí!@#$#$^&*');
39+
return removeDiacritics.replace(myValue);
3640
};
3741

42+
// this will return my-lsctztzai-
3843
$scope.createSEOname = function(){
39-
removeDiacritics.seo('my +ľščťžťžáí!@#$#$^&*');
44+
return removeDiacritics.seo(myValue, replaceWith);
4045
};
4146
```

0 commit comments

Comments
 (0)