Polymer 1.0 - routing

后端 未结 6 940
青春惊慌失措
青春惊慌失措 2020-12-24 14:48

I\'m new to Polymer. I start writing a simple webapp in which 1. User first land in a login page 2. If user passes login, then direct user to content page

I write an

6条回答
  •  星月不相逢
    2020-12-24 15:29

    The answer depends on the kind of router you use. I was unhappy with the state of Polymer routers, so I wrote excess-router. With this router, you would:

    • define your routes, and make /content is a default route
    • configure router to be started manually
    • start the router manually on signin
    
    
    
    
    
    

提交回复
热议问题