Angular directive for rendering vega specs.
<div vega id="chart1" spec="spec"></div>
Where "spec" is $scope.spec
in your controller. Your div must have a unique id.
See example folder for full usage. See vega documentation and vega editor for how to construct vega specs.