Sample docs page example

Why not angular filter? This will remove code duplication in `methodExample` and also works faster in latest releases.