Skip to content

Instantly share code, notes, and snippets.

@arnaudvalle
Created September 6, 2017 07:32
Show Gist options
  • Save arnaudvalle/3f53183c78c880d5cfa9d0d7e850aa56 to your computer and use it in GitHub Desktop.
Save arnaudvalle/3f53183c78c880d5cfa9d0d7e850aa56 to your computer and use it in GitHub Desktop.
template_controller.js
(function IIFE() {
'use strict';
/////////////////////////////
/* @ngInject */
function TemplateController(Utils) {
var vm = this;
/////////////////////////////
// //
// Private attributes //
// //
/////////////////////////////
/**
* The jsdoc for my private constant.
*
* @type {Object}
* @constant
* @readonly
*/
var _PRIVATE_CONST = {};
/**
* The jsdoc for my private var.
*
* @type {Object}
*/
var _privateVar = {};
/////////////////////////////
// //
// Public attributes //
// //
/////////////////////////////
/**
* The jsdoc for my public constant.
*
* @type {Object}
* @constant
* @readonly
*/
vm.PUBLIC_CONST = {};
/**
* The jsdoc for my public var.
*
* @type {Object}
*/
vm.publicVar = {};
/////////////////////////////
/**
* Services and utilities.
*/
vm.Utils = Utils;
/////////////////////////////
// //
// Private functions //
// //
/////////////////////////////
/////////////////////////////
// //
// Public functions //
// //
/////////////////////////////
/**
* The jsdoc for publicFunction.
*/
function publicFunction() {
}
/////////////////////////////
vm.publicFunction = publicFunction;
/////////////////////////////
// //
// Events //
// //
/////////////////////////////
/////////////////////////////
// //
// Watchers //
// //
/////////////////////////////
/////////////////////////////
/**
* Initialize the controller.
*/
function init() {
}
init();
}
/////////////////////////////
angular.module('Controllers').controller('TemplateController', TemplateController);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment