File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,6 @@ Using npm:
2929npm 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
36331\. 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
5450It 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
6766The library works with Angular versions `` >=8.0.0 `` .
6867
You can’t perform that action at this time.
0 commit comments