import { Injectable } from "@angular/core" ; @ Injectable ( ) export class DynaFactoryResService { private answerToEverything : number = 42 ; giveMeTheAnswer ( ) { return this . answerToEverything ; } }