Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing last step to making a page doc #379

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from
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
5 changes: 3 additions & 2 deletions articles/013-create-new-page/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ <h2 id="page-creation-example">Page creation&nbsp;example</h2>
})();
</code></pre>
<p>3) Then let’s create empty html file called <code>my-new-page.html</code> inside of <code>src/app/pages/myNewPage</code>.</p>
<p>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&nbsp;2:</p>
<p>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&nbsp;2:</p>
<pre><code class="lang-javascript">(<span class="function"><span class="keyword">function</span> (<span class="params"></span>) </span>{
<span class="meta"> 'use strict'</span>;

Expand All @@ -100,6 +100,7 @@ <h2 id="page-creation-example">Page creation&nbsp;example</h2>

})();
</code></pre>
<p>5) Lastly, add the page to the parent module. Edit the <code>pages.module.js</code> 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").</p>
<p>That’s it! Your can now open your new page either from sidebar or through hash&nbsp;<span class="caps">URL</span>.</p>

</div>
Expand All @@ -115,4 +116,4 @@ <h2 id="page-creation-example">Page creation&nbsp;example</h2>
ga('send', 'pageview');
</script>
</body>
</html>
</html>