AngularJS workaround