From 7db4fd17b86898da0755f132c2c95e7eb1d02685 Mon Sep 17 00:00:00 2001 From: Osmar Cavalcante Date: Fri, 26 Aug 2016 09:27:36 -0300 Subject: [PATCH] Adding missing step to configure a new page. --- .../articles/013-create-new-page/index.md | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/docs/contents/articles/013-create-new-page/index.md b/docs/contents/articles/013-create-new-page/index.md index 104d016..7a36c65 100644 --- a/docs/contents/articles/013-create-new-page/index.md +++ b/docs/contents/articles/013-create-new-page/index.md @@ -40,7 +40,7 @@ This will allow you to easily switch off some pages in the future if needed. 3) Then let's create empty html file called `my-new-page.html` inside of `src/app/pages/myNewPage`. -4) Lastly let's create ui router state for this page. To do this we need to modify module.js file we created on step 2: +4) Let's create ui router state for this page. To do this we need to modify module.js file we created on step 2: ```javascript (function () { 'use strict'; @@ -64,5 +64,25 @@ This will allow you to easily switch off some pages in the future if needed. })(); ``` +5) Lastly, add our module to `src/app/pages/pages.module.js`: + +```javascript + angular.module('BlurAdmin.pages', [ + 'ui.router', + + 'BlurAdmin.pages.dashboard', + 'BlurAdmin.pages.ui', + 'BlurAdmin.pages.components', + 'BlurAdmin.pages.form', + 'BlurAdmin.pages.tables', + 'BlurAdmin.pages.charts', + 'BlurAdmin.pages.maps', + 'BlurAdmin.pages.profile', + 'BlurAdmin.pages.myNewPage' + ]) + .config(routeConfig); + +``` + That's it! Your can now open your new page either from sidebar or through hash URL.