Skip to content

Component

Tim Rücker edited this page May 18, 2019 · 5 revisions

This decorator is the heart of the framework. It allows the framework to find the elements and child elements based on the selectors and to initialize the template object.

Decorator Options

A brief list of all possible configurations that can be made to the component.

selector: string

The selector property is described in detail here.

restrict: string

The matches elements of the selector option are matched against this selector. A warning is logged into the console if the elements do not match. This is only used for error prevention if a third party uses created components.

childrenSelectors: string[]

Only elements within the element that was found using the selector are searched. The configuration is expected to be an array of strings corresponding to the data attributes of the target elements.

The results of the childrenSelectors property is described in detail here.

template: string

The template property is described in detail here.

templateCachingEnabled: boolean = false

The external used Template (templateUrl property) is stored inside the localStorage if this property is set to true

Clone this wiki locally