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 { Utils } from '@nativescript/core' | |
| export function getAppVersionInfo() { | |
| let versionName: string; | |
| let buildNumber: string; | |
| if (__APPLE__) { | |
| versionName = NSBundle.mainBundle.objectForInfoDictionaryKey('CFBundleShortVersionString'); | |
| buildNumber = NSBundle.mainBundle.objectForInfoDictionaryKey('CFBundleVersion'); | |
| } else { | |
| const pi = Utils.android |
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 { | |
| Directive, | |
| ElementRef, | |
| EmbeddedViewRef, | |
| Input, | |
| OnDestroy, | |
| OnInit, | |
| Optional, | |
| TemplateRef, | |
| ViewContainerRef, |
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
| <Image [src]="image" stretch="aspectFit" (loaded)="loadedImage($event)" class="w-full h-full"></Image> |
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
| diff --git a/node_modules/@angular-devkit/schematics/tools/file-system-engine-host-base.js b/node_modules/@angular-devkit/schematics/tools/file-system-engine-host-base.js | |
| index 1d2c59c..9ed0cb1 100755 | |
| --- a/node_modules/@angular-devkit/schematics/tools/file-system-engine-host-base.js | |
| +++ b/node_modules/@angular-devkit/schematics/tools/file-system-engine-host-base.js | |
| @@ -137,7 +137,7 @@ class FileSystemEngineHostBase { | |
| const aliases = description.schematics[schematicName].aliases || []; | |
| for (const alias of aliases) { | |
| if (allNames.indexOf(alias) != -1) { | |
| - throw new SchematicNameCollisionException(alias); | |
| + // throw new SchematicNameCollisionException(alias); |
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
| <Label text="The hero's birthday is {{ birthday | date }}"></Label> |
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
| <p>The hero's birthday is {{ birthday | date }}</p> |
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 { Directive, ElementRef, HostListener, inject } from "@angular/core"; | |
| @Directive({ | |
| selector: "[appHighlight]", | |
| }) | |
| export class HighlightDirective { | |
| currentColor = ""; | |
| private el = inject(ElementRef); | |
| @HostListener("tap") onTap() { |
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
| <Label appHighlight text="Attribute Directive"></Label> |
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 { Directive, ElementRef, inject } from "@angular/core"; | |
| @Directive({ | |
| selector: "[appHighlight]", | |
| }) | |
| export class HighlightDirective { | |
| private el = inject(ElementRef); | |
| constructor() { | |
| this.el.nativeElement.style.backgroundColor = "yellow"; |
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], | |
| }) |
NewerOlder