Skip to content

Commit 3d23121

Browse files
committed
Change readme
1 parent 9e81dc7 commit 3d23121

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ Using npm:
2929
npm i --save @ueler/ng-lazyload-script
3030
```
3131

32-
## How does it work?
33-
The service creates a ``<script>`` tag with the provided source url and appends it to the document body.
34-
3532
## Usage
3633
1\. Inject the service into your own service or component:
3734
```
@@ -49,7 +46,6 @@ this.ngLazyloadScriptService.loadScript('URL_TO_JAVASCRIPT_FILE').subscribe(() =
4946
});
5047
```
5148

52-
5349
## Example
5450
It can be used to load the Stripe Javscript API (https://stripe.com/docs/js):
5551
```
@@ -63,6 +59,9 @@ this.ngLazyloadScriptService.loadScript('https://js.stripe.com/v3/').subscribe((
6359
});
6460
```
6561

62+
## How does it work?
63+
The service creates a ``<script>`` tag with the provided source url and appends it to the document body.
64+
6665
## Angular compatibility
6766
The library works with Angular versions ``>=8.0.0``.
6867

0 commit comments

Comments
 (0)