ngx-google-forms-checkbox-mcq
v0.1.1
Published
This library aims to provide UI components that look & feel like google forms.
Downloads
4
Readme
ngx-google-forms-checkbox-mcq
Create a reusable UI library that behaves like:
- a MCQ (multiple-choice-question) with checkboxes that allows for more than one right answer
- or, a poll with checkboxes that allows for more than one choice to be selected
Code scaffolding
Run ng generate component component-name --project checkbox-mcq
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project checkbox-mcq
.
Note: Don't forget to add
--project checkbox-mcq
or else it will be added to the default project in yourangular.json
file.
Build
The build artifacts will be stored in the
dist/
directory.npm run build_checkbox_mcq npm run pack_checkbox_mcq
Publishing
After building your library with
ng build checkbox-mcq
, go to the dist foldercd dist/checkbox-mcq
and runnpm publish
.Or, update the version number in
projects/checkbox-mcq/package.json
and then use one command to rule them all:npm run publish_checkbox_mcq
Running unit tests
Run ng test checkbox-mcq
to execute the unit tests via Karma.
Further help
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.