Skip to content

Instantly share code, notes, and snippets.

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 NathanWalker/fb9e965ad290b9a1858d291c657304b9 to your computer and use it in GitHub Desktop.
Save NathanWalker/fb9e965ad290b9a1858d291c657304b9 to your computer and use it in GitHub Desktop.
NativeScript for Angular v14 standalone component
import { Component } from "@angular/core";
import { NativeScriptCommonModule } from "@nativescript/angular";
@Component({
standalone: true,
selector: "hello-standalone",
imports: [NativeScriptCommonModule],
template: `<Label text="Hello, I'm a standalone component"></Label>`,
schemas: [NO_ERRORS_SCHEMA],
})
export class HelloStandaloneComponent {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment