Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ModelViewConnector

You can register such a connector using ProjectSettings.modelViewConnectors. Will be called when parsing typescript files, allows you to tell ng-typeview about connections between scopes and views made in your code (whether the scope is defined in a controller or a directive for instance).

Hierarchy

  • ModelViewConnector

Index

Properties

getModelView

getModelView: 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 typescript file name

param

the AST node which matched your specification

param

the path of the project on disk

returns

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

Type declaration

    • (filename: string, node: ts.Node, projectPath: string): ModelViewInfo[]
    • Parameters

      • filename: string
      • node: ts.Node
      • projectPath: string

      Returns ModelViewInfo[]

interceptAstNode

interceptAstNode: ts.SyntaxKind

Which AST node you want to be listening for

Generated using TypeDoc