From d6ad7e70495e93ce26068184adf7a1cddb6ebb96 Mon Sep 17 00:00:00 2001 From: Chris Curnow Date: Thu, 22 Oct 2015 15:15:23 +1100 Subject: [PATCH 1/2] Clarified some comments re starting server --- src/app/app.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/app/app.ts b/src/app/app.ts index 3572428534..ce5f5c0449 100644 --- a/src/app/app.ts +++ b/src/app/app.ts @@ -83,13 +83,17 @@ export class App { data: Array = []; // default data // TypeScript public modifiers constructor(public http: Http) { - this.title = 'Angular 2'; + this.title = '4Cast'; } onInit() { // Our API - // npm run express-install - // npm run express + // Before you start the app, run these commands in another process: + // + // - npm run express-install + // - npm run express + // + // This will start a process that will listen for requests on port 3001 const BASE_URL = 'http://localhost:3001'; const TODO_API_URL = '/api/todos'; @@ -121,7 +125,7 @@ export class App { errorMessage(err) { console.info(`${'\n' - } // You must run these commands for the Http API to work in another process ${'\n' + } // You must run these commands in another process for the Http API to work ${'\n' } npm run express-install ${'\n' } npm run express `); From b3efc756ee64aa9c85e4ff50cc399a829165649e Mon Sep 17 00:00:00 2001 From: Chris Curnow Date: Thu, 22 Oct 2015 15:18:53 +1100 Subject: [PATCH 2/2] Clarified some comments re starting server --- src/app/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/app.ts b/src/app/app.ts index ce5f5c0449..3b4bf53a51 100644 --- a/src/app/app.ts +++ b/src/app/app.ts @@ -83,7 +83,7 @@ export class App { data: Array = []; // default data // TypeScript public modifiers constructor(public http: Http) { - this.title = '4Cast'; + this.title = 'Angular 2'; } onInit() {