File: src/packages/chat/chatModule.js

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

Contents

Class file image Download
import angular from 'angular'; //Import angular translate (i18n for your Angular app) import 'angular-translate'; import 'angular-translate-loader-static'; //import 'angular-relative-date'; //Import all module templates import * as Templates from './templates'; import {commonModule} from 'commons'; //Import config module class import ChatConfig from './config/chat-config'; let chatModule = angular.module('app.chat', [ 'common', Templates.ChatTpl.name ]).config(($stateProvider, $translateProvider) => { //Init module routes new ChatConfig($stateProvider, Templates).initModuleRoutes(); //------------- $translateProvider i18n config --------------- //$translateProvider.useStaticFilesLoader({ // prefix: 'app/packages/chat/i18n/locale-', // suffix: '.json' //}); //$translateProvider.useLoader('i18nLoader', { // module: 'chat' //}); //------------------------------------------------------- }); /** * Run module */ chatModule.run(() => { }); export default chatModule;