@nativescript/template-hello-world-ng-vision
Version:
Nativescript visionOS Starter with Angular
19 lines (14 loc) • 402 B
text/typescript
import { Component, OnInit } from '@angular/core'
import { Item } from './item'
import { ItemService } from './item.service'
({
selector: 'ns-items',
templateUrl: './items.component.html',
})
export class ItemsComponent implements OnInit {
items: Array<Item>
constructor(private itemService: ItemService) {}
ngOnInit(): void {
this.items = this.itemService.getItems()
}
}