To limit the number of information printed in the console.log while running the web app, but still having a fast way to get the comprehensive list of logs when issue arise, add the following 2 functions
toggleDebug(): js function that change the value of a rootScope variable debugEnabled to true (default = false)
debugLog(message): used instead of console.log, this function check if $rootScope.debugEnabled == true before printing the message to the console.
This way we can leave log calls in the code and ask the user to activate them only when needed.
To limit the number of information printed in the console.log while running the web app, but still having a fast way to get the comprehensive list of logs when issue arise, add the following 2 functions
This way we can leave log calls in the code and ask the user to activate them only when needed.