refactor(ngRoute): compile the route once and reuse the regex

Compile the route path once and reuse it in the future