Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ControllerViewConnector

You can register such a connector using ProjectSettings.ctrlViewConnectors. Will be called when parsing typescript files, allows you to tell ng-typeview about connections between controllers and views made in your code, for instance if you wrapped $modal.open() through your own helper classes or things like that. For an example, check ctrlViewConn in test/controller-parser.ts.

Hierarchy

  • ControllerViewConnector

Index

Properties

getControllerView

getControllerView: 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

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

interceptAstNode

interceptAstNode: ts.SyntaxKind

Which AST node you want to be listening for

Generated using TypeDoc