search

Home  >  Q&A  >  body text

angular.js - How is routing implemented in angular?

Very curious~~

PHP中文网PHP中文网2828 days ago735

reply all(2)I'll reply

  • 習慣沉默

    習慣沉默2017-05-15 16:51:52

    Isn’t it just through hash? Different operations are done through the hashchange event according to different hashes.

    reply
    0
  • PHP中文网

    PHP中文网2017-05-15 16:51:52

    The specific API is History,兼容不支持该 API 的环境则改用 HashChangeEvent.

    If you want to understand the principle of implementation, you can start with the "state machine".

    reply
    0
  • Cancelreply