Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ViewDecorator

Type of View decorator

Hierarchy

  • ViewDecorator

Callable

  • __call(view: string): any
  • Defines the view to render

    example
    @Controller()
    export class TestController {
      @Get('/')
      @View('index')
      index() {}
    
      @Get('/test')
      test() {
        return Result([ new View('test) ]);
      }
    }
    

    Parameters

    • view: string

    Returns any

Index

Constructors

Constructors

constructor

  • new ViewDecorator(view: string): View

Generated using TypeDoc