Custom directives

example.directive.js
	import {Decorators} from 'core';

	@Decorators.DirectiveDecorator({
	    selector: 'upperCase'
	})
	export default class UpperCaseDirectove {
	    constructor(elem) {
	        this.elem = elem;
	    }

	    onUpdate() {
	        this.toUpperCase();
	    }

	    toUpperCase() {
	        this.elem.innerHTML = this.elem.innerHTML.toUpperCase();
	    }
	}
onUpdate
Triggeres when component is updated
example.component.html
<span upperCase>test</span>
will be replaced with
example.component.html
<span upperCase>TEST</span>