From 5cee3b9b8bbc676f88018bc162c79859cb52b46c Mon Sep 17 00:00:00 2001 From: Kevin Leung Date: Tue, 27 Sep 2016 12:56:04 -0700 Subject: [PATCH] * docs(toh-6): update 'let' to 'const' for delete hero (#2355) Since the update function does use const url instead of let url, this seemed like a good consistency to have between similar blocks of code. * docs(toh-6): update 'let' to 'const' for delete hero --- public/docs/_examples/toh-6/ts/app/hero.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/docs/_examples/toh-6/ts/app/hero.service.ts b/public/docs/_examples/toh-6/ts/app/hero.service.ts index e220982f6f..49c760073e 100644 --- a/public/docs/_examples/toh-6/ts/app/hero.service.ts +++ b/public/docs/_examples/toh-6/ts/app/hero.service.ts @@ -42,7 +42,7 @@ export class HeroService { // #docregion delete delete(id: number): Promise { - let url = `${this.heroesUrl}/${id}`; + const url = `${this.heroesUrl}/${id}`; return this.http.delete(url, {headers: this.headers}) .toPromise() .then(() => null)