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

Replace npmcdn.com with unpkg.com #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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/[email protected]/angular1/angular_1_router.js"></script>
<script src="https://unpkg.com/@angular/[email protected]/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/[email protected]/angular1/angular_1_router.js"></script>
<script src="https://unpkg.com/@angular/[email protected]/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/[email protected]/angular1/angular_1_router.js"></script>
<script src="https://unpkg.com/@angular/[email protected]/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/[email protected]/angular1/angular_1_router.js"></script>
<script src="https://unpkg.com/@angular/[email protected]/angular1/angular_1_router.js"></script>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ <h2 id="installation">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 @@ -133,7 +133,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/[email protected]/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/[email protected]/angular1/angular_1_router.js&quot;&gt;&lt;/script&gt;</code></pre>
</div>

<div class="runnable-example-file"
Expand Down