How could I hyphenate a string in AngularJS. I would like to be able to do something like this:
<a href="/houses/{{object.name | lowercase | hyphenate}}/">
So that This Is The String becomes this-is-the-string.
Is there a filter to hyphenate strings similar to lowercase? If not any ideas on how I could achieve this?