import { Injectable } from '@angular/core' ; @ Injectable ( ) export class ParametersProvider { parameterType : { 'type' : string ; 'passFromHomePageToMoviePage' : boolean ; } ; constructor ( ) { this . initParameterType ( ) ; } initParameterType ( ) { this . parameterType = { 'type' : 'hot' , 'passFromHomePageToMoviePage' : false } ; } setParameterType ( type , passFromHomePageToMoviePage ) { this . parameterType = { 'type' : type , 'passFromHomePageToMoviePage' : passFromHomePageToMoviePage } ; } }