Resolve the scan finding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā08-05-2022 04:50 AM
Resolve this Scan finding please help me
Short description : Always deregister $rootScope.$on listeners on the scope $destroy event
Resolution details: I attached in picture
- Labels:
-
Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā08-05-2022 07:47 AM
It tells you exactly what to do (the record and what to do with it).
As was already mentioned on Telegram: what are you asking exactly?
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā08-12-2024 05:51 AM
Hi chandana,
please use below code for destroy and rescan and test:
$scope.$on('$destroy', function() { derigister(); });
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā08-12-2024 05:54 AM
Hi chanadana,
Please use below code for destroying the event:
$scope.$on('$destroy', function() { deregister(); });