This is the archived documentation for Angular v6. Please visit angular.io to see documentation for the current version of Angular.

wtfLeave

Used to mark end of Scope.

See more...

const wtfLeave: <T>(scope: any, returnValue?: T) => T;
      
      const wtfLeave: <T>(scope: any, returnValue?: T) => T;
    

Description

  • scope to end.
  • returnValue (optional) to be passed to the WTF.

Returns the `returnValue for easy chaining.