Angular module for the ECG Quicktest
bootstrap.progressbarAngularJS 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.jsto your html to load the module. - Install bootstrap-progressbar: e.g.
bower install bootstrap-progressbar --save-dev - Include
bootstrap-progressbar.jsto your html. - (If not already) Add jQuery because bootstrap-progressbar depends on it.
- (Optional) Include it in your
blocksAngularJS 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/*.jsto your html to load the module. - Configure the URLS:
- in the
blocks.modulesconfigureurlConfigProvider.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).
- in the
- (Optional) Include it in your
- Set the texts to use:
- Inject in a desired controller the
ecgQuicktestTextsservice and assign to thetscope variable the texts in the desired language:$scope.t = ecgQuicktestTexts['de'];.
- Inject in a desired controller the
- (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/*.cssto your html.
- Install ecg-assets-common: e.g.
- Include
src/main.css(the CSS for the quick test) to your html.
See an example in test/index.html.
MIT