AngularJS: How to trigger $watch listener (only once) as long as a $rootScope variable is not null/undefined?

前端 未结 0 1266
轻奢々
轻奢々 2020-12-29 16:57

I know that AngularJS $watch is to trigger listener when the value of a $rootScope changes, but how about triggering the listener (once onl

相关标签:
回答
  • 消灭零回复
提交回复
热议问题