Skip to content
Open
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ <h1 class="title">Component Router</h1>
<app></app>

<!-- Load up the router library - normally you might use npm and host it locally -->
<script src="https://npmcdn.com/@angular/router@0.2.0/angular1/angular_1_router.js"></script>
<script src="https://unpkg.com/@angular/router@0.2.0/angular1/angular_1_router.js"></script>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ <h1 class="title">Component Router</h1>
<app></app>

<!-- Load up the router library - normally you might use npm and host it locally -->
<script src="https://npmcdn.com/@angular/router@0.2.0/angular1/angular_1_router.js"></script>
<script src="https://unpkg.com/@angular/router@0.2.0/angular1/angular_1_router.js"></script>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ <h1 class="title">Component Router</h1>
<app></app>

<!-- Load up the router library - normally you might use npm and host it locally -->
<script src="https://npmcdn.com/@angular/router@0.2.0/angular1/angular_1_router.js"></script>
<script src="https://unpkg.com/@angular/router@0.2.0/angular1/angular_1_router.js"></script>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ <h1 class="title">Component Router</h1>
<app></app>

<!-- Load up the router library - normally you might use npm and host it locally -->
<script src="https://npmcdn.com/@angular/router@0.2.0/angular1/angular_1_router.js"></script>
<script src="https://unpkg.com/@angular/router@0.2.0/angular1/angular_1_router.js"></script>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h2>Installation</h2>
<pre><code class="lang-html">&lt;!-- IE required polyfills, in this exact order --&gt;
&lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/es6-shim/0.33.3/es6-shim.min.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.19.20/system-polyfills.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;https://npmcdn.com/angular2/es6/dev/src/testing/shims_for_IE.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;https://unpkg.com/angular2/es6/dev/src/testing/shims_for_IE.js&quot;&gt;&lt;/script&gt;
</code></pre>
<p>Then load the module in your application by adding it as a dependent module:</p>
<pre><code class="lang-js">angular.module(&#39;app&#39;, [&#39;ngComponentRouter&#39;]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ <h1 id="example-heroes-app">Example Heroes App</h1>
name="index.html"
language="html"
type="html">
<pre><code>&lt;h1 class=&quot;title&quot;&gt;Component Router&lt;/h1&gt;&#10;&lt;app&gt;&lt;/app&gt;&#10;&#10;&lt;!-- Load up the router library - normally you might use npm and host it locally --&gt;&#10;&lt;script src=&quot;https://npmcdn.com/@angular/router@0.2.0/angular1/angular_1_router.js&quot;&gt;&lt;/script&gt;</code></pre>
<pre><code>&lt;h1 class=&quot;title&quot;&gt;Component Router&lt;/h1&gt;&#10;&lt;app&gt;&lt;/app&gt;&#10;&#10;&lt;!-- Load up the router library - normally you might use npm and host it locally --&gt;&#10;&lt;script src=&quot;https://unpkg.com/@angular/router@0.2.0/angular1/angular_1_router.js&quot;&gt;&lt;/script&gt;</code></pre>
</div>

<div class="runnable-example-file"
Expand Down Expand Up @@ -211,7 +211,7 @@ <h2 id="load-the-scripts">Load the scripts</h2>
<pre><code class="lang-html">&lt;!-- IE required polyfills, in this exact order --&gt;
&lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/es6-shim/0.33.3/es6-shim.min.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.19.20/system-polyfills.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;https://npmcdn.com/angular2/es6/dev/src/testing/shims_for_IE.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;https://unpkg.com/angular2/es6/dev/src/testing/shims_for_IE.js&quot;&gt;&lt;/script&gt;
</code></pre>
<h2 id="create-the-app-module">Create the <code>app</code> module</h2>
<p>In the app.js file, create the main application module <code>app</code> which depends on the <code>ngComponentRouter</code>
Expand Down