Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
chore: cleanup
  • Loading branch information
NathanWalker committed Jul 17, 2024
commit fad7987ab6bd1e0a54d90b44691f225a31965d7f
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/* eslint-disable @angular-eslint/component-selector */
import { NgIf } from '@angular/common';
import { Component, Inject } from '@angular/core';
import { IDevice, platformNames } from '@nativescript/core';
import { DEVICE } from '../../tokens';

@Component({
selector: 'android',
template: `<ng-content *ngIf="show"></ng-content>`,
template: `@if (show) {
<ng-content></ng-content>
}`,
standalone: true,
imports: [NgIf],
})
export class AndroidFilterComponent {
public show: boolean;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/* eslint-disable @angular-eslint/component-selector */
import { NgIf } from '@angular/common';
import { Component, Inject } from '@angular/core';
import { IDevice, platformNames } from '@nativescript/core';
import { DEVICE } from '../../tokens';

@Component({
selector: 'ios',
template: `<ng-content *ngIf="show"></ng-content>`,
template: `@if (show) {
<ng-content></ng-content>
}`,
standalone: true,
imports: [NgIf],
})
export class IOSFilterComponent {
public show: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ import { DEVICE } from '../../tokens';

@Component({
selector: 'visionos',
template: `<ng-content *ngIf="show"></ng-content>`,
template: `@if (show) {
<ng-content></ng-content>
}`,
standalone: true,
})
export class VisionOSFilterComponent {
public show: boolean;
Expand Down