refactor: export silentLogger not SilentLoggerFn (#34079)

Export SilentLogger object instead of the SilentLoggerFn and capitalise silentLoggerFn instead of the SilentLoggerFn
PR Close #34079
This commit is contained in:
tresor616 2019-11-27 11:09:18 +02:00 committed by Matias Niemelä
parent 55b3f97be0
commit 99ce015f42
1 changed files with 4 additions and 4 deletions

View File

@ -158,11 +158,11 @@ export class Provider6bComponent {
// #docregion silent-logger
// An object in the shape of the logger service
export function SilentLoggerFn() {}
function silentLoggerFn() {}
const silentLogger = {
export const SilentLogger = {
logs: ['Silent logger says "Shhhhh!". Provided via "useValue"'],
log: SilentLoggerFn
log: silentLoggerFn
};
// #enddocregion silent-logger
@ -171,7 +171,7 @@ const silentLogger = {
template: template,
providers:
// #docregion providers-7
[{ provide: Logger, useValue: silentLogger }]
[{ provide: Logger, useValue: SilentLogger }]
// #enddocregion providers-7
})
export class Provider7Component {