Constructors

Properties

$id: number
component: any
controller: any
factory: any
getTemplate: ((ngView: any, context: any) => any)
loaded: boolean
path: any
template: any
viewDecl: any

Methods

  • Gets the controller for a view configuration.

    Parameters

    • context: any

    Returns Function | Promise<Function>

    Returns a controller, or a promise that resolves to a controller.

  • Normalizes a view's name from a state.views configuration block.

    This should be used by a framework implementation to calculate the values for [[_ViewDeclaration.$ngViewName]] and [[_ViewDeclaration.$ngViewContextAnchor]].

    Parameters

    • context: any

      the context object (state declaration) that the view belongs to

    • rawViewName: string = ""

      the name of the view, as declared in the [[StateDeclaration.views]]

    Returns {
        ngViewContextAnchor: string;
        ngViewName: string;
    }

    the normalized ngViewName and ngViewContextAnchor that the view targets

    • ngViewContextAnchor: string
    • ngViewName: string