Adding missing step to configure a new page.

pull/152/head
Osmar Cavalcante 2016-08-26 09:27:36 -03:00 committed by GitHub
parent f89cdf0916
commit 7db4fd17b8
1 changed files with 21 additions and 1 deletions

View File

@ -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`. 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 ```javascript
(function () { (function () {
'use strict'; '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. That's it! Your can now open your new page either from sidebar or through hash URL.