Skip to content

Commit 2fd38d4

Browse files
authored
Update README.md
1 parent 88d6c5d commit 2fd38d4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Introduction
2-
This is a confuguration package for Angular.
2+
This is a configuration package for Angular.
33
It allows you to dynamically load a json file at the root of your project.
44
It also provides a provider that allows you to add configuration values in the config function of your Angular app.
55
There is a test app using this Provider to show how to configure and use it.
@@ -42,8 +42,9 @@ loadConfigurationJSON(() => {
4242
});
4343
```
4444

45-
## Add a configuration at config
46-
In the config function of your Angular application, inject the `ConfigurationProvider` and call the `addObject` function.
45+
## Add a configuration at config state
46+
In the config function of your Angular application, inject the `ConfigurationProvider` and call the `addConfiguration` function.
47+
You can also add a default configuration by calling `addDefaultConfiguration`. This function only changes the priority of the configuration loaded. It means that if the current configuration has a "env" param and the default configuration has also an "env" param, then it will keep the param of the current configuration, not the default one.
4748
You can specify the type of your configuration object in the Typescript version.
4849

4950
```

0 commit comments

Comments
 (0)