From 7917bba1a40be6ed6d0f85ee443bf7da15e589aa Mon Sep 17 00:00:00 2001 From: Jeff Cross Date: Tue, 19 May 2015 15:17:16 -0700 Subject: [PATCH] style(guide): remove FriendsService from ES5 example where TS example does not have it --- public/docs/js/latest/guide/displaying-data.jade | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/public/docs/js/latest/guide/displaying-data.jade b/public/docs/js/latest/guide/displaying-data.jade index 5f56161a08..56c373a519 100644 --- a/public/docs/js/latest/guide/displaying-data.jade +++ b/public/docs/js/latest/guide/displaying-data.jade @@ -220,6 +220,7 @@ function FriendsService() { this.names = ["Aarav", "Martín", "Shannon", "Ariana", "Kai"]; } + p. 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 @@ -248,9 +249,6 @@ code-pane(language="javascript" name="ES5" format="linenums"). //ES5 - function FriendsService() { - this.names = ["Alice", "Aarav", "Martín", "Shannon", "Ariana", "Kai"]; - } function DisplayComponent(friends) { this.myName = "Alice"; this.names = friends.names;