I'm trying to toggle a sidebar via toggling classes. In jQuery I had:
$("[data-toggle]").click(function () {
var toggle_el = $(this).data("toggle");
$(toggle_el).toggleClass("open-sidebar");
});
Wondering how I'd achieve the same thing with AngularJS