Created
September 6, 2017 07:32
-
-
Save arnaudvalle/3f53183c78c880d5cfa9d0d7e850aa56 to your computer and use it in GitHub Desktop.
template_controller.js
This file contains 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
(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