diff --git a/README.md b/README.md index b1acedd..76c198c 100644 --- a/README.md +++ b/README.md @@ -91,6 +91,7 @@ import {SlimLoadingBarService} from 'ng2-slim-loading-bar';
Hello world
+ ` }) @@ -107,17 +108,21 @@ export class AppComponent { stopLoading() { this.slimLoadingBarService.stop(); } + + completeLoading() { + this.slimLoadingBarService.complete(); + } } ``` #### 3. Customize the the `ng2-slim-loading-bar` for your application You can use the following properties to customize the `ng2-slim-loading-bar` component in your template: - `color` - The color of loading bar. Default is `firebrick`. Any CSS compatible value. -- `height` - The height of loading bar. Defaukt value is `2px`. -- `show` - The flag helps hide and show the loading bar. Devault value is `true` +- `height` - The height of loading bar. Default value is `2px`. +- `show` - The flag helps hide and show the loading bar. Devault value is `true`. Example: -`` +`` #### 4. Manage the loading bar You can use the following properties to customize the SlimLoadingBar via instance of SlimLoadingBarService: