Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (16 sloc) 646 Bytes
class LanguageController{
static $inject = ["LanguageService"];
public constructor(private languageService:ILanguageService){
this._cultures = languageService.registeredCultures;
}
private _cultures:Array<Culture> = null;
public get cultures():Array<Culture> { return this._cultures; }
public get currentCulture():Culture{
return this.languageService.currentCulture;
}
public set currentCulture(val:Culture){
console.log('setting culture to: ' + val.description);
this.languageService.setCurrent(val);
}
}
app.controller("LanguageController", LanguageController);