diff --git a/articles/013-create-new-page/index.html b/articles/013-create-new-page/index.html index 6b16f8f..c4d6723 100644 --- a/articles/013-create-new-page/index.html +++ b/articles/013-create-new-page/index.html @@ -78,7 +78,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) Now let’s create ui router state for this page. To do this we need to modify module.js file we created on step 2:
(function () {
;
@@ -100,6 +100,7 @@ This will allow you to easily switch off some pages in the future if needed
})();
+5) Lastly, add the page to the parent module. Edit the pages.module.js
file and add our new module to the dependency list, as well as to the sidebar definition object (for instance, under the item for "404 Page").
That’s it! Your can now open your new page either from sidebar or through hash URL.
@@ -115,4 +116,4 @@ This will allow you to easily switch off some pages in the future if needed ga('send', 'pageview');