Skip to content

Commit

Permalink
Added output events & upgrade to beta.17
Browse files Browse the repository at this point in the history
  • Loading branch information
robisim74 committed Apr 29, 2016
1 parent 2987f7f commit 1379201
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {},
Expand Down
18 changes: 9 additions & 9 deletions src/services/locale.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>();

/**
* output for event current country code changed.
/**
* Output for event current country code changed.
*/
@Output() countryCodeChanged = new EventEmitter<string>();

/**
* output for event current currency code changed.
/**
* Output for event current currency code changed.
*/
@Output() currencyCodeChanged = new EventEmitter<string>();

Expand Down Expand Up @@ -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);
}

Expand Down Expand Up @@ -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);
}

Expand Down Expand Up @@ -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);
}
Expand All @@ -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);
}

Expand Down

0 comments on commit 1379201

Please sign in to comment.