angular.js - angularjs gives html an ID when switching routes
高洛峰
高洛峰 2017-05-15 16:59:44
0
1
551

I just came into contact with angularjs
Is there any way to add an id or some unique identifier to the html tag when switching routes?

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
曾经蜡笔没有小新

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template