ng-vdom icon indicating copy to clipboard operation
ng-vdom copied to clipboard

Feature: bridge existing class/function component to Angular

Open trotyl opened this issue 6 years ago • 0 comments

API Design

import { Migration } from 'ng-renderable'
import { Calendar } from 'some-lib'

@Directive({
  selector: 'my-calendar',
})
class CalendarComponent extends Migration<Calendar> {
  @Input() set date(value: Date) { this.update({ value }) }
  @Output() dateChange = this.observe(props => props.onChange)

  constructor(injector: Injector) {
    super(injector, Calendar)
  }
}

Note: to remain compatible with closure-compiler, string literals cannot be used.

trotyl avatar Dec 26 '18 11:12 trotyl