From 13792012574adc2c1daac854c6a09acb426accc1 Mon Sep 17 00:00:00 2001 From: Roberto Simonetti Date: Fri, 29 Apr 2016 12:04:05 +0200 Subject: [PATCH] Added output events & upgrade to beta.17 --- package.json | 2 +- src/services/locale.service.ts | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 8efef043..40160ea4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "angular2localization", - "version": "0.5.1", + "version": "0.5.2", "description": "An Angular 2 library to translate messages, dates and numbers", "main": "", "scripts": {}, diff --git a/src/services/locale.service.ts b/src/services/locale.service.ts index 89091616..0ac70cee 100644 --- a/src/services/locale.service.ts +++ b/src/services/locale.service.ts @@ -122,17 +122,17 @@ import {Injectable, EventEmitter, Output} from 'angular2/core'; @Injectable() export class LocaleService { /** - * output for event current language code changed. + * Output for event current language code changed. */ @Output() languageCodeChanged = new EventEmitter(); - /** - * output for event current country code changed. + /** + * Output for event current country code changed. */ @Output() countryCodeChanged = new EventEmitter(); - /** - * output for event current currency code changed. + /** + * Output for event current currency code changed. */ @Output() currencyCodeChanged = new EventEmitter(); @@ -414,7 +414,7 @@ import {Injectable, EventEmitter, Output} from 'angular2/core'; // Sets the cookie "locale". this.setCookie("locale", this.defaultLocale, this.expiry); - // send an event + // Send an event. this.languageCodeChanged.emit(language); } @@ -442,7 +442,7 @@ import {Injectable, EventEmitter, Output} from 'angular2/core'; // Sets the cookie "locale". this.setCookie("locale", this.defaultLocale, this.expiry); - // send an event + // Send an event. this.countryCodeChanged.emit(country); } @@ -473,7 +473,7 @@ import {Injectable, EventEmitter, Output} from 'angular2/core'; // Sets the cookie "locale". this.setCookie("locale", this.defaultLocale, this.expiry); - // send the events + // Send the events. this.countryCodeChanged.emit(country); this.languageCodeChanged.emit(language); } @@ -498,7 +498,7 @@ import {Injectable, EventEmitter, Output} from 'angular2/core'; // Sets the cookie "currency". this.setCookie("currency", this.currencyCode, this.expiry); - // send the event + // Send an event. this.currencyCodeChanged.emit(currency); }