Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CtrlViewFragmentExtractor

You can register such an extractor using ProjectSettings.ctrlViewFragmentExtractors. Will be called when parsing typescript files, allows you to tell ng-typeview about view fragments present in your controllers, for instance ng-grid has 'cell templates' which typeview can also type-check through this mechanism.

Hierarchy

  • CtrlViewFragmentExtractor

Index

Properties

getViewFragments

getViewFragments: function

When your view connector is registered and we parse a TS file and ecounter an AST node with the type you specified through interceptAstNode, this function will be called.

param

the AST node which matched your specification

returns

the view fragments that you detected for this node, if any (the empty array if you didn't detect any).

Type declaration

    • (node: ts.Node): string[]
    • Parameters

      • node: ts.Node

      Returns string[]

interceptAstNode

interceptAstNode: ts.SyntaxKind

Which AST node you want to be listening for

Generated using TypeDoc