Skip to content

Instantly share code, notes, and snippets.

@ssougnez
Created October 13, 2021 20:08
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 ssougnez/b2940f3d32db4f60b94b8bcefaafc7c1 to your computer and use it in GitHub Desktop.
Save ssougnez/b2940f3d32db4f60b94b8bcefaafc7c1 to your computer and use it in GitHub Desktop.
this._uniqueId ||= [...this._elementRef.nativeElement.attributes].find(
(attr) => attr.name.startsWith('_ngcontent-')
).name;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment