diff --git a/README.md b/README.md index 305cf88..5c763c2 100644 --- a/README.md +++ b/README.md @@ -43,11 +43,11 @@ Finally, you can use *ng2-slim-loading-bar* in your Angular 2 project: - Instantiate `SlimLoadingBarService` in the bootstrap of your application; - Add `SlimLoadingBarComponent` to the "directives" property of your application component; - Add `` tag in template of your application component. +- Inject style into your web page ```js import {Component} from '@angular/core'; import {SlimLoadingBarService, SlimLoadingBarComponent} from 'ng2-slim-loading-bar'; -import {bootstrap} from '@angular/platform/browser'; @Component({ selector: 'app', @@ -70,12 +70,10 @@ export class AppComponent { }); } } - -bootstrap(AppComponent); ``` -# License - [MIT](/LICENSE) - # Credits -Inspired by [ngProgress.js](https://github.com/VictorBjelkholm/ngProgress) \ No newline at end of file +Inspired by [ngProgress.js](https://github.com/VictorBjelkholm/ngProgress) + +# License + [MIT](/LICENSE) \ No newline at end of file diff --git a/tests/component.spec.ts b/tests/component.spec.ts index 16a3396..d717e47 100644 --- a/tests/component.spec.ts +++ b/tests/component.spec.ts @@ -17,7 +17,7 @@ TestBed.initTestEnvironment( export function main() { describe('SlimLoadingBar', () => { - let componentFixture:ComponentFixture; + let componentFixture:ComponentFixture; let component:SlimLoadingBarComponent; let containerDiv:HTMLDivElement; let progressDiv:HTMLDivElement;