Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TagDirectiveHandler

Allows to handle a specific angular directive, which tied to a specific HTML tag. For instance ui-select.

Hierarchy

  • TagDirectiveHandler

Index

Properties

canHandleAttributes

canHandleAttributes: string[]

List of attributes this tag directive may handle. Used for the 'unhandled attribute' warning.

forTags

forTags: string[]

List of tag 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). NOTE: If you return the empty list here, you will be called for every tag.

Methods

handleTag

  • handle a certain tag appearing in the view.

    Parameters

    • tagName: string

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

    • attribs: object

      A dictionary object, the keys being the normalized (ng-xxx) attribute names, the value the attribute values

      • [type: string]: string
    • 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 tag.

Generated using TypeDoc