File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -403,7 +403,7 @@ figure
403
403
Here's an example of a service class that logs to the browser console
404
404
+ makeExample('architecture/ts/app/logger.service.ts' , 'class' , 'app/logger.service.ts (class only)' )( format ="." )
405
405
:marked
406
- Here's a `HeroService` that fetches heroes and returns them in a resolved [promise](http://www.2ality. com/2014/10/ es6-promises-api .html).
406
+ Here's a `HeroService` that fetches heroes and returns them in a resolved [promise](http://exploringjs. com/es6/ch_promises .html).
407
407
The `HeroService` depends on the `LoggerService` and another `BackendService` that handles the server communication grunt work.
408
408
+ makeExample('architecture/ts/app/hero.service.ts' , 'class' , 'app/hero.service.ts (class only)' )( format ="." )
409
409
:marked
Original file line number Diff line number Diff line change @@ -966,7 +966,7 @@ code-example(format="").
966
966
:marked
967
967
The `DialogService` (injected in the `AppComponent` for app-wide use) does the asking.
968
968
969
- It returns a [promise](http://www.2ality. com/2014/10/ es6-promises-api .html) that
969
+ It returns a [promise](http://exploringjs. com/es6/ch_promises .html) that
970
970
*resolves* when the user eventually decides what to do: either
971
971
to discard changes and navigate away (`true`) or to preserve the pending changes and stay in the crisis editor (`false`).
972
972
Original file line number Diff line number Diff line change @@ -288,7 +288,7 @@ code-example(format="." language="html").
288
288
It does that work (somewhere) and eventually it calls our function with the results of the work or an error.
289
289
.l-sub-section
290
290
:marked
291
- We are simplifying. Learn about ES2015 Promises [here](http://www.2ality. com/2014/10/ es6-promises-api .html) and elsewhere on the web.
291
+ We are simplifying. Learn about ES2015 Promises [here](http://exploringjs. com/es6/ch_promises .html) and elsewhere on the web.
292
292
:marked
293
293
Update the `HeroService` with this promise-returning `getHeroes` method:
294
294
+ makeExample('toh-4/ts/app/hero.service.ts' , 'get-heroes' , 'hero.service.ts (getHeroes)' )( format ="." )
You can’t perform that action at this time.
0 commit comments