- In VWO, set up a test
- add js/css variation
<script>
// get Angular scope from a known DOM element
e = document.getElementById('someElement');
scope = angular.element(e).scope();
// update the model with a wrap in $apply(fn) which will refresh the view for us
scope.$apply(function() {
scope.property = 'foo';
});
</script>