11th September, 2013

Angular Controller Template

/*jshint undef:false */

'use strict';

/**
 * AMD Module definition
 */
define(
    [
        'angular',
        'js/utilities/console',
        'js/settings',
        'js/applicationModule'
    ],

    function(angular, console, settings, applicationModule) {

        /**
         * @description Add Controller to Angular
         */
        applicationModule.controller('NewController', [
            '$route',
            '$scope',
            '$routeParams',
            '$location',
            '$rootScope',
            '$timeout',

            function($route, $scope, $routeParams, $location, $rootScope, $timeout) {

                // Put your code here
                // ...


            }
        ]);
    }
);

 

Add Comment

The opinions expressed here are my own and not those of my employer.