Skip to content

Instantly share code, notes, and snippets.

@srameshr
Created November 2, 2015 07:49
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 srameshr/e56f6e323109bae847d6 to your computer and use it in GitHub Desktop.
Save srameshr/e56f6e323109bae847d6 to your computer and use it in GitHub Desktop.
(function() {
"use strict";
angular
.module("app")
.controller("AppCtrl", AppCtrl);
function AppCtrl() {
var vm = this;
// Public
(function() {
this.someProperty = 'A value';
this.somePublicFunction = somePublicFunction
}).call(vm);
// Function definitions
// Private's
function _privateFunc() {
//
}
// Public
function somePublicFunction() {
//
}
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment