Created
October 6, 2014 19:53
-
-
Save xcarpentier/de9ac84ccc176036d39a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/* A éviter */ | |
function Sessions(data) { | |
var vm = this; | |
vm.gotoSession = gotoSession; | |
vm.refresh = function() { | |
/** | |
* les | |
* multiples | |
* lignes | |
* de | |
* code | |
* diminu | |
* la | |
* lisibilité | |
*/ | |
}; | |
vm.search = search; | |
vm.sessions = []; | |
vm.title = 'Sessions'; | |
} | |
/* Recommandé */ | |
function Sessions(dataservice) { | |
var vm = this; | |
vm.gotoSession = gotoSession; | |
vm.refresh = dataservice.refresh; // 1 liner OK | |
vm.search = search; | |
vm.sessions = []; | |
vm.title = 'Sessions'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment