Can't we use ReplacePipe?


#1

I’m getting the values pretty well from my service on reddit wiki page. So, I have regex for “v=videoID” but I just need to “videoID” when I try to .replace() I just get errors which “.replace is not a function”. My question is can I use Angular2’s ReplacePipe? Or something that works.

So this is the inside of method in my potw.ts

http://paste.ofcode.org/34hvfFqVBqMxXHWdaQktWWk

Here is potw.html

http://paste.ofcode.org/rACXmGbAFmtuBctiBjKRsV