I would recommend using angular-ui's "modal" directive (not angular-strap in this case), and do something like this:
<div modal="selectedDataset">
Edit Data Set: {{selectedDataset.name}}
Put fields here to edit the selected data set
</div>
And then in your controller: Instead of this:
$("#editModal").modal("toggle");
Do this instead:
$scope.selectedDataset = widget;
The modal directive will notice that "selectedDataset" became truthy, and it will show the modal.
Inside your modal HTML, you can access the {{selectedDataset}} object.
--Dave
> --
> Group meets on the 1st Thursday and 3rd Tuesday of each month. See
http://utahjs.com/location/ for more info.
> ---
> You received this message because you are subscribed to the Google Groups "Utah JavaScript" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
utahjs+un...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/utahjs?hl=en-US.
>
>