Skip to content

Instantly share code, notes, and snippets.

@Purecaesar
Created July 5, 2021 10:46
Show Gist options
  • Save Purecaesar/7ea5160269524e25a80aee85ab065aa0 to your computer and use it in GitHub Desktop.
Save Purecaesar/7ea5160269524e25a80aee85ab065aa0 to your computer and use it in GitHub Desktop.
import { ChangeDetectionStrategy, Component } from '@angular/core';
import { NgResolve } from '../../ng-resolve/decorators/ng-resolve.decorator';
@Component({
selector: 'app-nested',
template: `
<div>I'm nested! And NgResolve doesn't work here :(</div>
<br />
{{ nestedData }}
`,
changeDetection: ChangeDetectionStrategy.OnPush
})
export class NestedComponent {
@NgResolve('data')
public nestedData: number[];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment