Core API

Class Decorators

@Component

Utilities

createDecorator

Custom decorators are run during component initialisation so they can extend the component capability.

EventEmitter

Constants

INIT_CLASS

INIT_SELECTOR

VERSION

Component API

Property Decorators

@OnInit

@Evt

@El

Properties / DOM

$element

$data

Properties / Composition

mixins

Methods / Lifecycle

$teardown

Methods / Events

Instance events are handled by EventEmitter custom event implementation not using DOM events.

$emit

$on

$off

Lifecycle Hooks

beforeInit

init

beforeDestroy

destroy

DOM API

Note: Element is internal class for handling DOM manipulation that reimplements jQuery API. In components this.$element and all elements found using @El property decorator are Element instances.

Element

Traversing

find

children

closest

parent

eq

first

get

array

Filtering

filter

map

each

is

Manipulation

clone

append

prepend

Insert content, specified by the argument, to the beginning of each element in the set of matched elements. Additional data can be provided, which will be used for populating the html

remove

text

html

attr

prop

data

addClass

removeClass

toggleClass

Events

trigger

on

off

Miscellaneous

index