Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion docs/contents/articles/013-create-new-page/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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.