File: src/packages/common/commonModule.js

Recommend this page to a friend!
  Classes of Alien Fernandez   Seed Sails Angular   src/packages/common/commonModule.js   Download  
File: src/packages/common/commonModule.js
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Seed Sails Angular
Full stack framework based on Sails, Node, Angular
Author: By
Last change: Update of src/packages/common/commonModule.js
Date: 3 years ago
Size: 784 bytes
 

Contents

Class file image Download
import angular from 'angular'; import Constant from './components/core/Constant'; //Import lodash import 'ng-lodash'; //import 'focusif'; //Import all module templates import * as Templates from './templates'; /** * Module common */ let commonModule = angular.module('common', [ 'ngLodash', Templates.NavBarTpl.name, Templates.AppPanelTpl.name ]); commonModule.config((localStorageServiceProvider, $appConstants) => { //Updating prefix and storage type of localStorage localStorageServiceProvider .setPrefix($appConstants.local_store.prefix) .setStorageType($appConstants.local_store.type.session_storage) .setNotify(true, true); }); //commonModule.run(($http, localStorageService, $appConstants) => { // //}); export default commonModule;