Created
June 30, 2022 04:11
-
-
Save NathanWalker/fb9e965ad290b9a1858d291c657304b9 to your computer and use it in GitHub Desktop.
NativeScript for Angular v14 standalone component
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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