BackgroundClass ComponentGenerator

The ComponentGenerator hold information about a node froma template. It can be used to create component instancesfor a certain scope and parent.

alias

{ default } from mahalo/template/component-generator

Hierarchy

  • ComponentGenerator

Implements

Index

Constructors

constructor

  • Parameters
    • node: Element
    • Default value desc: object = {}
    Returns ComponentGenerator

Properties

Constructor

Constructor:Component

The constructor function of the component.

behaviors

behaviors:Object

A map of behaviors that the component will use.

children

children:IGenerator[]

A list of children that will be created insideof the template's children element.

node

node:Node

The node to clone from.

template

template:Template

The template that components will use.

Methods

compile

  • Compiles the node in a given scope and appends it toa parent node as well as the parent controller.

    Parameters
    Returns void