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.