import { fullscreenLoadingServiceObj } from '../../app.component' ; export function FullscreenLoading ( ) { return ( ( target , key , descriptor ) : any => { const originalMethod = descriptor . value ; descriptor . value = function ( ... args ) { fullscreenLoadingServiceObj . show ( ) ; return originalMethod . apply ( this , args ) ; } ; return descriptor ; } ) as MethodDecorator ; }