Directory

app-experiment-behavior - Vaadin Add-on Directory

Polymer behavior for simple A/B/... experiments app-experiment-behavior - Vaadin Add-on Directory
**[ This description is mirrored from README.md at [github.com/Collaborne/app-experiment-behavior](https://github.com//Collaborne/app-experiment-behavior/blob/v1.1.0/README.md) on 2019-05-22 ]** _[Demo and API Docs](http://collaborne.github.io/app-experiment-behavior)_ # app-experiment-behavior [![Bower version](https://badge.fury.io/bo/app-experiment-behavior.svg)](http://badge.fury.io/bo/app-experiment-behavior) [![Build Status](https://travis-ci.org/Collaborne/app-experiment-behavior.svg?branch=master)](https://travis-ci.org/Collaborne/app-experiment-behavior) Polymer 1.x behavior for simple A/B/... experiments ### Usage **See this [blog post](https://medium.com/collaborne-engineering/a-b-testing-made-easy-with-polymer-7038b22779af) for a detailed tutorial.** Using this behavior is (fairly) easy: `bower install app-experiment-behavior` After that you need to reference the behavior and provide the viewer information for your component: ```html ``` In this example the component provides the 'experimentViewer' property directly, but this could be extracted into a separate behavior, allowing you to simplify code in your app even more: ```js const MyViewerBehavior = { properties: { experimentViewer: { type: Object, computed: '_computeExperimentViewer(...)' }, }, _computeExperimentViewer(...) { // Calculate the viewer based on the given inputs } }; function MyExperimentBehavior() { return [...Polymer.AppExperimentBehavior.apply(this, arguments), MyViewerBehavior ]; } ```
GitHub Homepage
Documentation
Issue tracker
Online Demo
View on GitHub

app-experiment-behavior version 1.0.0
### Dependencies * polymer#Polymer/polymer#^1.9.1

app-experiment-behavior version 1.1.0
### Dependencies * polymer#Polymer/polymer#^1.9.1

app-experiment-behavior version 2.0.0
### Dependencies * polymer#Polymer/polymer#^2.0.0

app-experiment-behavior version 2.0.1
### Dependencies * polymer#Polymer/polymer#^2.0.0