Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface AttributeDirectiveHandler

Allows to handle a specific angular directive, which is tied to an attribute (so, not tied to any particular HTML tag). For instance <ANY ng-repeat>.

Hierarchy

  • AttributeDirectiveHandler

Index

Properties

Methods

Properties

forAttributes

forAttributes: string[]

List of attribute names which will trigger this handler. You must use the ng-xxx syntax here (other forms present in your application's source will get normalized to this syntax, so it'll match).

Methods

handleAttribute

  • handle a certain attribute appearing in the view.

    Parameters

    • attrName: string

      The normalized name of the attribute (always in the form ng-xxx)

    • attrValue: string

      The value for the attribute

    • codegenHelpers: CodegenHelper

      Object containing helper functions to assist with typescript code generation

    Returns DirectiveResponse | undefined

    The TS source to generate for that attribute, and the closing source if needed. You can also return undefined in case you don't want to handle the attribute.

Generated using TypeDoc