Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 1d294a8

Browse files
Foxandxsswardbell
authored andcommitted
docs(upgrade): escape script tags
closes #1584
1 parent 8fe68f4 commit 1d294a8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

public/docs/ts/latest/guide/upgrade.jade

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ include ../_util-fns
9696
up with a project structure with a large number of relatively small files. This is
9797
a much neater way to organize things than a small number of large files, but it
9898
doesn't work that well if you have to load all those files to the HTML page with
99-
`<script>` tags. Especially when you also have to maintain those tags in the correct
99+
&lt;script&gt; tags. Especially when you also have to maintain those tags in the correct
100100
order. That's why it's a good idea to start using a *module loader*.
101101

102102
Using a module loader such as [SystemJS](https://github.com/systemjs/systemjs),
@@ -1171,7 +1171,7 @@ code-example(format="").
11711171
version of the `Phone` Angular 2 service.
11721172

11731173
Now that we are loading `phone.service.ts` through an import that is resolved
1174-
by SystemJS, we should **remove the `<script>` tag** for the service from `index.html`.
1174+
by SystemJS, we should **remove the &lt;script&gt; tag** for the service from `index.html`.
11751175
This is something we'll do to all our components as we upgrade them. Simultaneously
11761176
with the Angular 1 to 2 upgrade we're also migrating our code from scripts to modules.
11771177

@@ -1257,7 +1257,7 @@ code-example(format="").
12571257
know that the return value of the downgrade method call will be something that can be
12581258
used as a directive factory.
12591259

1260-
At this point, also remove the `<script>` tag for the phone list component from `index.html`.
1260+
At this point, also remove the &lt;script&gt; tag for the phone list component from `index.html`.
12611261

12621262
Now we can start looking at our other component, which is the one for
12631263
the phone details. Set the contents of `phone-detail.component.ts` as follows:
@@ -1314,7 +1314,7 @@ code-example(format="").
13141314
+makeExample('upgrade-phonecat-2-hybrid/ts/app/main.ts', 'phone-detail', 'app/main.ts')
13151315

13161316
:marked
1317-
We should now also remove the phone detail component `<script>` tag from `index.html`.
1317+
We should now also remove the phone detail component &lt;script&gt; tag from `index.html`.
13181318

13191319
There's one additional step we need to take, which is to upgrade the
13201320
`checkmark` filter that the template is using. We need an Angular 2
@@ -1330,7 +1330,7 @@ code-example(format="").
13301330

13311331
:marked
13321332
In the component we should now import and declare our newly created pipe (as well as
1333-
remove the filter `<script>` tag from `index.html`):
1333+
remove the filter &lt;script&gt; tag from `index.html`):
13341334

13351335
+makeExample('upgrade-phonecat-2-hybrid/ts/app/phone-detail/phone-detail.component.ts', 'checkmark-pipe', 'app/phone-detail/phone-detail.component.ts')
13361336

0 commit comments

Comments
 (0)