Skip to content

Instantly share code, notes, and snippets.

@xcarpentier
Created October 6, 2014 19:49
Show Gist options
  • Save xcarpentier/0d64e73e993bd865cf2b to your computer and use it in GitHub Desktop.
Save xcarpentier/0d64e73e993bd865cf2b to your computer and use it in GitHub Desktop.
/* 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