I have the following laravel html/blade page and i want to pass in a storeid that then can get picked up via angular to then use to get and do some workings with.
Below is how i am accomplishing it NOW but is there a better way to produce the same?
Blade Partial
<div ng-controller="storeChartCtrl" data-storeid="{{ $store['id'] }}">
<p>{{ $store['name'] }} Sales</p>
...
</div>
Angular Ctrl
.controller('storeChartCtrl', ['$scope', 'Store', function($scope, Store){
//-- get the requested store sales
var storeid = JQ('#storeChart').data('storeid');
$log.info(storeid);
....
This currently works and i get my storeid value so i can then send to my factory to get the data.