import { Injectable } from '@angular/core' ; @ Injectable ( ) export class CharacterNamesService { private names : string [ ] ; constructor ( ) { this . names = [ 'main.lea' ] ; } returns { string [ ] } getAllNames ( ) { return this . names ; } }