Defining App
var myApp = angular.module('myApp', []);
Adding Constants
These constants are used to remove magic string from the application and user application level constants,
myApp.constant('AppConstants', (function () { var constants = {}; constants.App = {}; constants.App.Name = "My Application Name"; constants.LocalStorage = {}; constants.LocalStorage.profileKey = "profile"; constants.LocalStorage.clientsKey = "clients"; constants.clsProfile = {}; constants.clsProfile.Email = "Email"; return constants; }()) );