title: Is there a way to get a specific string out of a route in TypeScript?
body: <p>Say I have a route that is <a href="http://www.stackoverflow.com/questions/ask">http://www.stackoverflow.com/questions/ask</a></p>
  
  <p>Is there a way I can read through that link and check the see if the word "ask" is there? </p>
  
  <p>So, </p>
  
  <pre><code>If(link.contains["ask"]) {
       containsAsk = true;
  }
  </code></pre>
  
  <p>To be clear, I am trying to pull the link from the browser, and do not have it defined within my code. </p>