DadUndead / ngx-scorm-wrapper

Scorm wrapper for Angular projects
MIT License
3 stars 7 forks source link

How to use this? #1

Closed aaniceto closed 5 years ago

aaniceto commented 6 years ago

Hi,

Very new to this SCORM thingy..

I've installed the module.. and imported on my .module.ts file import { ScormWrapperModule, ScormWrapperService } from 'ngx-scorm-wrapper';

also passed the module to the imports and the service to the providers..

I have a scorm package to test.. how should this work exactly?

Sorry for the very basic question but the documentation in thin.

ghost commented 6 years ago

You can use the ScormWrapperService in any of your components (after you added it to the providers in your app.module). Just add the service to your component class constructor like:

constructor(private sws: ScormWrapperService)

You can now use the methods found here: https://github.com/patamechanix/angularjs-scorm-wrapper

DadUndead commented 5 years ago

You can use the ScormWrapperService in any of your components (after you added it to the providers in your app.module). Just add the service to your component class constructor like:

constructor(private sws: ScormWrapperService)

You can now use the methods found here: https://github.com/patamechanix/angularjs-scorm-wrapper

Thanks for your help! I updated readme.md