From a319e332a234028495298acaf6223f25af4122aa Mon Sep 17 00:00:00 2001 From: Kevin Leung Date: Wed, 14 Sep 2016 20:42:16 -0700 Subject: [PATCH] * docs(toh-6): update 'let' to 'const' for delete hero 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)