December 2016
Intermediate to advanced
841 pages
17h
English
Let's create a new file, named index.html, under the application's root directory. The following code snippet is an altered version of the real index.html page, which is included with the companion source code:
<ul class="nav navbar-nav">
<li>
<a href="#market/nasdaq">NASDAQ</a>
</li>
<li>
<a href="#market/nyse">NYSE</a>
</li>
</ul>
<div id="outlet">
<!-- HTML GENERATED BY VIEWS GOES HERE -->
</div>As you can see in the preceding HTML snippet, the code has two important elements. The first significant element is the URL of the two links. These links include the hash character (#), and they will be processed by the application's router.
The second significant element is the element that uses outlet as ID. This node is used ...
Read now
Unlock full access