search

Home  >  Q&A  >  body text

angular.js - How to compile this link path? ? ?

How to click the a tag to generate such a link?
For example, this article was written on August 15, 2016.
How to use this as a link to this article

習慣沉默習慣沉默2873 days ago579

reply all(1)I'll reply

  • phpcn_u1582

    phpcn_u15822017-05-15 17:09:27

    //router
    
        "/article/:year/:month/:day/detail" : {
            name: "articleDetail",
            component: require('')
        },
        
        <a v-link="{ name: 'articleDetail' ,params: { year: '2016', month:'10', day:'04' }}">  </a>
    
    

    reply
    0
  • Cancelreply