UNPKG

@nstudio/schematics

Version:

Cross-platform (xplat) tools for Nx workspaces.

28 lines (21 loc) 671 B
import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; // libs import { BaseComponent } from '@<%= npmScope %>/core/base'; import { LogService } from '@<%= npmScope %>/core/services/log.service'; // app import { Item } from '../models'; import { ItemService } from '../services/item.service'; export abstract class ItemsBaseComponent extends BaseComponent implements OnInit { public items: Item[]; constructor( protected log: LogService, protected itemService: ItemService, ) { super(); } ngOnInit() { this.log.debug('ItemsBaseComponent ngOnInit'); this.items = this.itemService.getItems(); } }