From 4b4582cb1705fecb20916ca652160608661c6087 Mon Sep 17 00:00:00 2001 From: Mithun Patel Date: Sat, 21 Nov 2015 20:05:50 -0600 Subject: [PATCH] Fix typos in Forms & DI chapters; add links in testing docs closes #398 --- public/docs/_layout.jade | 2 +- public/docs/ts/latest/guide/dependency-injection.jade | 2 +- public/docs/ts/latest/guide/forms.jade | 2 +- public/docs/ts/latest/guide/pipes.jade | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/docs/_layout.jade b/public/docs/_layout.jade index 83c2ad3584..5f896beb7d 100644 --- a/public/docs/_layout.jade +++ b/public/docs/_layout.jade @@ -21,7 +21,7 @@ html(lang="en" ng-app="angularIOApp" itemscope itemtype="http://schema.org/Frame article(class="l-content-small grid-fluid docs-content") != yield - if current.path[3] == 'guide' && current.path[4] + if (current.path[3] == 'guide' || current.path[3] == 'testing') && current.path[4] != partial("../_includes/_next-item") != partial("../_includes/_footer") diff --git a/public/docs/ts/latest/guide/dependency-injection.jade b/public/docs/ts/latest/guide/dependency-injection.jade index 219170c166..43fc07a7e3 100644 --- a/public/docs/ts/latest/guide/dependency-injection.jade +++ b/public/docs/ts/latest/guide/dependency-injection.jade @@ -300,7 +300,7 @@ include ../../../../_includes/_util-fns We emphasized earlier that designing a class for dependency injection makes it easier to test. Mission accomplished! We don't even need the Angular Dependency Injection system to test the `HeroesComponent`. - We simply create a bew `HeroesComponent` with a mock service and poke at it: + We simply create a new `HeroesComponent` with a mock service and poke at it: ``` it("should have heroes when created", () => { let hc = new HeroesComponent(mockService); diff --git a/public/docs/ts/latest/guide/forms.jade b/public/docs/ts/latest/guide/forms.jade index 622dd5c1f4..1e8d70311f 100644 --- a/public/docs/ts/latest/guide/forms.jade +++ b/public/docs/ts/latest/guide/forms.jade @@ -172,7 +172,7 @@ figure.image-display 1. The `template` is simply the new element tag identified by the component's `select` property. - 1. The `directives` array tells Angular that our templated depends upon the `HeroFormComponent` + 1. The `directives` array tells Angular that our template depends upon the `HeroFormComponent` which is itself a Directive (as are all Components). .l-main-section diff --git a/public/docs/ts/latest/guide/pipes.jade b/public/docs/ts/latest/guide/pipes.jade index af9f62f5f5..42e2a9e36e 100644 --- a/public/docs/ts/latest/guide/pipes.jade +++ b/public/docs/ts/latest/guide/pipes.jade @@ -128,7 +128,7 @@ figure.image-display +makeExample('pipes/ts/src/app/exponential-strength-pipe.ts') :marked - This pipe definition reveals several few key points + This pipe definition reveals several key points * We import the `Pipe` decorator from the Angular library (while getting the usual symbols) * A pipe is a class * We decorate the class with the `@Pipe` decorator function.