Last active
November 4, 2015 13:37
-
-
Save SomeKay/0ab00142e58b7c872ebd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ... imports | |
export default class FacadeService implements IFacadeService { | |
private dataService:IDataService; | |
private uiStateService:IUIStateService; | |
constructor(dataService:IDataService, uiStateService:IUIStateService) { | |
this.dataService = dataService; | |
this.uiStateService = uiStateService; | |
} | |
public getDecks():IDeck[] { | |
return this.dataService.getDecks(); | |
} | |
public createNewDeck(name:string):void { | |
this.dataService.createNewDeck(name); | |
this.uiStateService.setShowNewDeckForm(false); | |
} | |
// ... rest of service | |
} | |
FacadeService.$inject = ['DataService', 'UIStateService']; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment