File: src/packages/blog/blogModule.js

Recommend this page to a friend!
  Classes of Alien Fernandez   Seed Sails Angular   src/packages/blog/blogModule.js   Download  
File: src/packages/blog/blogModule.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/blog/blogModule.js
Date: 2 years ago
Size: 831 bytes
 

Contents

Class file image Download
import angular from 'angular'; import agGrid from 'ag-grid'; //Import all module templates import * as Templates from './templates'; //Import config module class import BlogConfig from './config/blog-config'; import {commonModule} from 'commons'; // get ag-Grid to create an Angular module and register the ag-Grid directive agGrid.initialiseAgGridWithAngular1(angular); let blogModule = angular.module('app.blog', [ 'agGrid', 'common', //Templates Templates.AddArticleTpl.name, Templates.EditArticleTpl.name, Templates.ArticleListTpl.name, Templates.BlogArticleListTpl.name ]) .config(($stateProvider) => { //Init module routes new BlogConfig($stateProvider, Templates).initModuleRoutes(); }); /** * Run blog module */ blogModule.run(() => { }); export default blogModule;