style(guide): remove FriendsService from ES5 example where TS example does not have it

This commit is contained in:
Jeff Cross 2015-05-19 15:17:16 -07:00
parent abb973d069
commit 7917bba1a4
1 changed files with 1 additions and 3 deletions

View File

@ -220,6 +220,7 @@
function FriendsService() { function FriendsService() {
this.names = ["Aarav", "Martín", "Shannon", "Ariana", "Kai"]; this.names = ["Aarav", "Martín", "Shannon", "Ariana", "Kai"];
} }
p. p.
Now replace the current list of friends in DisplayComponent by including the FriendsService in the injectables list, Now replace the current list of friends in DisplayComponent by including the FriendsService in the injectables list,
then including the service in the constructor, and finally setting the list of then including the service in the constructor, and finally setting the list of
@ -248,9 +249,6 @@
code-pane(language="javascript" name="ES5" format="linenums"). code-pane(language="javascript" name="ES5" format="linenums").
//ES5 //ES5
function FriendsService() {
this.names = ["Alice", "Aarav", "Martín", "Shannon", "Ariana", "Kai"];
}
function DisplayComponent(<span class='otl'>friends</span>) { function DisplayComponent(<span class='otl'>friends</span>) {
this.myName = "Alice"; this.myName = "Alice";
this.names = <span class='otl'>friends.names</span>; this.names = <span class='otl'>friends.names</span>;