Polymer 1.0 - routing

后端 未结 6 941
青春惊慌失措
青春惊慌失措 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:37

    Try using 'dna-router'. Its relatively new and supports Polymer-1.0. You can create routing purely in html.

    Dna-router also supports user-authentication. You can pass login status and loggedin data in its 'dna-config' element. Router will show page based on login status. You can declare which states need user authentication.

    Its still under development and have some glitches in it. But worth giving a try.

    Github: https://github.com/Saquib764/dna-router/

提交回复
热议问题