web-component-builder
v1.0.8-rc.0
Published
Web Component Builder with typescript decorators
Downloads
11
Maintainers
Readme
Web Component Builder
web-component-builder
is a simple typescript project that allows creating web components with an angular-like syntax.
Currently, capabilities are :
Component
declarations withselector
and inlinetemplate
Component
attributes
as custom elementattributes
Component
lifecycle methods likeonInit
,onAttrChanges
,onViewInit
andonDestroy
Dependency Injection
throughservices / providers
Examples
@Component({
selector: 'my-comp',
template: '<div>My First Web Component with Builder!</div>'
})
class MyComp implements IOnInit, IOnDestroy() {
}