I've a custom angular filter directive which can replace strings using the following syntax:

```
{{ 'MyValue' | replace: 'My':'Foo' }}

```

This works fine. Now I want to use this filter inside a ng-click

```
<button ng-click="alert('{{ 'MyValue' | replace: 'My':'Value'}}')">Click Me!</button>

```

This throws an parse exception (I assume because of the surrounding apostrophes from the alert). What's the correct syntax in this case?

A Plunkr is available here: <http://plnkr.co/edit/xEGjY40LWORt5nlaJq46>