Skip to content

Instantly share code, notes, and snippets.

@chidumennamdi
Created August 22, 2018 16:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chidumennamdi/e073703d8b7130cb7ba9db0d1cb0896a to your computer and use it in GitHub Desktop.
Save chidumennamdi/e073703d8b7130cb7ba9db0d1cb0896a to your computer and use it in GitHub Desktop.
export const Component: ComponentDecorator = makeDecorator(
'Component', (c: Component = {}) => ({changeDetection: ChangeDetectionStrategy.Default, ...c}),
Directive, undefined,
(type: Type<any>, meta: Component) => (R3_COMPILE_COMPONENT || (() => {}))(type, meta));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment