MCPcopy
hub / github.com/angular/angular / clearConsole

Function clearConsole

packages/platform-server/test/hydration_utils.ts:293–296  ·  view source on GitHub ↗
(appRef: ApplicationRef)

Source from the content-addressed store, hash-verified

291 * Clears the Debug console
292 */
293export function clearConsole(appRef: ApplicationRef) {
294 const console = appRef.injector.get(Console) as DebugConsole;
295 console.logs = [];
296}
297
298// Clears all the counts in ngDevMode
299export function resetNgDevModeCounters() {

Calls 1

getMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…