0.1.5 • Published 6 years ago

mainio-survey v0.1.5

Weekly downloads
7
License
MIT
Repository
github
Last release
6 years ago

Mainio Survey

Angular 6 web component application that provides ease of integration of SurveyJS formatted surveys to any app and website

Build status

Install

  1. Install mainio-survey npm i mainio-survey or yarn add mainio-survey

  2. Install peer dependencies npm i @angular/core @angular/common @angular/elements @webcomponents/custom-elements @angular/cdk survey-angular uuid

  3. Add polyfill import '@webcomponents/custom-elements/src/native-shim';

  4. Add basic SurveyJS styles to your index.html <link href="https://surveyjs.azureedge.net/1.0.32/survey.css" type="text/css" rel="stylesheet"/>

Usage

Pass the data to mainio-survey element via component inputs:

<mainio-survey api="assets/mock" survey_id="survey-1" user_id="user123">No survey data received.</mainio-survey>

Or via window-object

<script> window.MainioSurveyData = { api: "assets/mock", survey_id: "survey-1", user_id: "user123" }; </script>

You can use our Demo project as a starting point.

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.1

6 years ago