Merge pull request #80 from arai-a/ngIsClass

Add $$ngIsClass class accessor to support older browsers
This commit is contained in:
Boris Cherny
2018-05-05 10:43:40 -07:00
committed by GitHub
+3
View File
@@ -27,6 +27,9 @@ export function react2angular<Props>(
return {
bindings: fromPairs(names.map(_ => [_, '<'])),
controller: ['$element', ...injectNames, class extends NgComponent<Props> {
static get $$ngIsClass() {
return true;
}
injectedProps: { [name: string]: any }
constructor(private $element: IAugmentedJQuery, ...injectedProps: any[]) {
super()