Skip to content

Instantly share code, notes, and snippets.

@SomeKay
Created November 4, 2015 13:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SomeKay/ba8bf39b146b47c6b7cc to your computer and use it in GitHub Desktop.
Save SomeKay/ba8bf39b146b47c6b7cc to your computer and use it in GitHub Desktop.
// ... imports
export default class DeckController {
private facadeService:IFacadeService;
constructor(facadeService:IFacadeService) {
this.facadeService = facadeService;
}
public getDecks():IDeck[] {
return this.facadeService.getDecks();
}
public addDeck():void {
this.facadeService.setShowNewDeckForm(true);
}
public editDeck(deck:IDeck):void {
this.facadeService.editDeck(deck);
}
public deleteDeck(deck:IDeck):void {
this.facadeService.deleteDeck(deck);
}
}
DeckController.$inject = ['FacadeService'];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment