npm install quick-survey-directive
Then include the following files:
An animated survey built with an Angular directive. Quicky build a survey with cool animations and reponsiveness.
- To use just include
quickSurveyDirectiveas a dependency in your angular module
- Define all questions within your controller in an array in this structure
$scopequestionSet =Q: "test1" A: ""Q: "test2" A: ""Q: "test3" A: ""Q: "Is Jon the man?" A: ""
- Initiate the survey by placing this custom html template:
Saving to a database
- To save to a database simply set up a
$scope.questionSetand save to the database everytime the answer is updated since it is two way bound. This is also a good method to use so you don't lose information on a page refresh.
- All styling custom configuration can be found in the
main.cssfile in the app folder