Created
October 6, 2014 19:49
-
-
Save xcarpentier/0d64e73e993bd865cf2b 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() { | |
var vm = this; | |
vm.gotoSession = function() { | |
/* ... */ | |
}; | |
vm.refresh = function() { | |
/* ... */ | |
}; | |
vm.search = function() { | |
/* ... */ | |
}; | |
vm.sessions = []; | |
vm.title = 'Sessions'; | |
} | |
/* Recommandé */ | |
function Sessions() { | |
var vm = this; | |
vm.gotoSession = gotoSession; | |
vm.refresh = refresh; | |
vm.search = search; | |
vm.sessions = []; | |
vm.title = 'Sessions'; | |
//////////// | |
function gotoSession() { | |
/* */ | |
} | |
function refresh() { | |
/* */ | |
} | |
function search() { | |
/* */ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment