title: get all routes in a vue router
body: <p>Am trying to create a simple menu using vue router , id like to iterate all routes and display in my menu , currently am using below instance method in my component but i just get a function , how would i iterate to get individual routes ?</p>
  
  <pre><code>methods : {
   getMenuLinks: function() {
  
          var t = this.$router.map() ;
          //t returns a vue object instance
          return t._children ;
          // did not know how to iterate this 
     }
  
   }
  </code></pre>
  
  <p>I want to iterate all maped routes to get something like below of each mapped route :</p>
  
  <pre><code>&lt;a v-link="{ path: 'home' }"&gt;Home&lt;/a&gt;
  </code></pre>