-
-
Save vitalybe/bb4332c3661fc9741021 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
{ | |
// private field init | |
var a = 1; | |
// Initialization logic is here | |
if () { | |
... | |
} | |
// Private functions | |
function func2() { | |
}; | |
// public field init | |
$scope.b = 1; // For controllers | |
this.c = 1; // For services | |
// Public functions | |
this.func = function () { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment