Skip to content

Commit 44f70a9

Browse files
arturovtvikerman
authored andcommitted
docs: fix typos in the ngConfig design document
1 parent e5a2dab commit 44f70a9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/design/ngConfig.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Goals
44

5-
Currently, a project scaffolded with the CLI have no way of specifying options and configurations affecting their projects. There are ways to affect the build (with the `angular-cli-build.js` file), but the following questions cannot be answered without actual project options:
5+
Currently, a project scaffolded with the CLI has no way of specifying options and configurations affecting their projects. There are ways to affect the build (with the `angular-cli-build.js` file), but the following questions cannot be answered without actual project options:
66

77
* Where in my directory is my karma.conf file?
88
* What is my firebase database URL?
@@ -27,7 +27,7 @@ The project `.angular-cli.json` goes into the project root. The global configura
2727

2828
## Structure
2929

30-
The structure should be defined by a JSON schema (see [here](http://json-schema.org/)). The schema will be used to generate the `d.ts`, but that file will be kept in the file system along the schema for IDEs.
30+
The structure should be defined by a JSON schema (see [here](http://json-schema.org/)). The schema will be used to generate the `d.ts`, but that file will be kept in the file system along with the schema for IDEs.
3131

3232
Every PR that would change the schema should include the update to the `d.ts`.
3333

@@ -70,7 +70,7 @@ A model should be created that will include loading and saving the configuration
7070

7171
**The model should be part of the project and created on the `project` object.**
7272

73-
That model can be used internally by the tool to get information. It will include a proxy handler that throws if an operation doesn't respect the schema. It will also sets values on globals and locals depending on which branches you access.
73+
That model can be used internally by the tool to get information. It will include a proxy handler that throws if an operation doesn't respect the schema. It will also set values on globals and locals depending on which branches you access.
7474

7575
A simple API would return the TypeScript interface:
7676

@@ -82,7 +82,7 @@ class Config {
8282
}
8383
```
8484

85-
The `local` and `global` getters return proxies that respect the JSON Schema defined for the Angular config. These proxies allow users to not worry about the existence of values; those values will only be created on disc when they are setted.
85+
The `local` and `global` getters return proxies that respect the JSON Schema defined for the Angular config. These proxies allow users to not worry about the existence of values; those values will only be created on disc when they are set.
8686

8787
Also, `local` will always defer to the same key-path in `global` if a value isn't available. If a value is set and the parent exists in `global`, it should be created to `local` such that it's saved locally to the project. The proxies only care about the end points of `local` and `global`, not the existence of a parent in either.
8888

0 commit comments

Comments
 (0)