search

Home  >  Q&A  >  body text

angular.js - angularjs 路由切换时给 html 做 id 标示

刚刚接触 angularjs
有什么办法在路由切换时 能否给 html 标签上加个 id 或者什么唯一标示之类的?

高洛峰高洛峰2744 days ago543

reply all(1)I'll reply

  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-15 17:01:44

    You can use the $locationChangeSuccess event in the $location service. You can do whatever needs to be done in the callback function.

    reply
    0
  • Cancelreply