senooken JP Social
  • FAQ
  • Login
senooken JP Socialはsenookenの専用分散SNSです。
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. ( ᐛ) まりなっピ (sasanquaneuf@qiitadon.com)'s status on Thursday, 25-Oct-2018 00:06:19 JST ( ᐛ) まりなっピ ( ᐛ) まりなっピ

    SPAとかでアクセスした時に状態整えるやつ、多くの場合はクライアントサイドでルーターを使う気がする
    SSRしなければこういうのがわかりやすいのかな(実装の簡単な例)
    http://krasimirtsonev.com/blog/article/A-modern-JavaScript-router-in-100-lines-history-api-pushState-hash-url

    In conversation Thursday, 25-Oct-2018 00:06:19 JST from qiitadon.com permalink

    Attachments

    1. No result found on File_thumbnail lookup.
      A modern JavaScript router in 100 lines
      from krasimirtsonev.com
      (The router here is now placed in its own project - Navigo. There is also another article Deep dive into client-side routing which you may find interesting)Nowadays the popular single page applications are everywhere. Having such application means that you need a solid routing mechanism. Frameworks like Emberjs are truly build on top of a Router class. I'm still not sure that this is a concept which I like, but I'm absolutely sure that AbsurdJS should have a build-in Router. And, as with everything in this little library, it should be small, simple class. Let's see how such a module may look like.

    Feeds

    • Activity Streams
    • RSS 2.0
    • Atom
    • Help
    • About
    • FAQ
    • TOS
    • Privacy
    • Source
    • Version
    • Contact

    senooken JP Social is a social network, courtesy of senooken. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.

    Creative Commons Attribution 3.0 All senooken JP Social content and data are available under the Creative Commons Attribution 3.0 license.