Skip to content

ecogood/ecg-quicktest-ngmodule

Repository files navigation

ecg-quicktest-ngmodule Build Status

Angular module for the ECG Quicktest

Requirements and Use

  • bootstrap.progressbar AngularJS directive to show test progress:
    • (Optional) Include it in your bower.json: "dependencies": { "angular-bootstrap-progressbar-directive": "https://github.com/nikolayhg/angular-bootstrap-progressbar-directive.git" } and install it.
    • Include progressbar.directive.js to your html to load the module.
    • Install bootstrap-progressbar: e.g. bower install bootstrap-progressbar --save-dev
    • Include bootstrap-progressbar.js to your html.
    • (If not already) Add jQuery because bootstrap-progressbar depends on it.
  • blocks AngularJS module for configuring the (template) URLs:
    • (Optional) Include it in your bower.json: "dependencies": { "blocks-ngmodule": "https://github.com/ecogood/blocks-ngmodule.git" } and install it.
    • Include all blocks/modules/*.js to your html to load the module.
    • Configure the URLS:
      • in the blocks.modules configure urlConfigProvider.setTemplateRootUrl('ecg-quicktest', '<root_url_to_your_templates>'); to set the root url of the quicktest templates within your app. Usually it should be the directory where you installed this module.
      • see the blocks.modules.config.js file as an example (or copy it in your project).
  • Set the texts to use:
    • Inject in a desired controller the ecgQuicktestTexts service and assign to the t scope variable the texts in the desired language: $scope.t = ecgQuicktestTexts['de'];.
  • (If not already) Add Bootstrap CSS
  • Include the commong ECG assets:
    • Install ecg-assets-common: e.g. bower install --save https://github.com/ecogood/ecg-assets-common.git
    • Include assets/css/*.css to your html.
  • Include src/main.css (the CSS for the quick test) to your html.

Example

See an example in test/index.html.

License

MIT

About

Angular module for the ECG quick test

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published