search

Home  >  Q&A  >  body text

angular.js - ui-router problem setting routing parameters

ui-router sets a route '/article/:tag'. When loading the corresponding view for the first time, there is no need to pass in parameters, but the access error says that the route is illegal. Please ask the experts how to solve this problem? ?

PHPzPHPz2798 days ago533

reply all(2)I'll reply

  • 黄舟

    黄舟2017-05-15 17:00:54

    Shouldn’t we add a view to /article?

    reply
    0
  • PHP中文网

    PHP中文网2017-05-15 17:00:54

    /article/{:tag}

    reply
    0
  • Cancelreply