Trigger a digest cycle when opening modals with dynamic content

This commit is contained in:
Matt-Yorkley
2021-08-03 13:19:36 +01:00
parent 5fb782aeba
commit 5d4d3d4fcf
10 changed files with 31 additions and 12 deletions

View File

@@ -1,4 +1,4 @@
angular.module("admin.subscriptions").directive 'newSubscriptionDialog', ($compile, $window, $templateCache, DialogDefaults, shops) ->
angular.module("admin.subscriptions").directive 'newSubscriptionDialog', ($rootScope, $compile, $window, $templateCache, DialogDefaults, shops) ->
restrict: 'A'
scope: true
link: (scope, element, attr) ->
@@ -26,3 +26,4 @@ angular.module("admin.subscriptions").directive 'newSubscriptionDialog', ($compi
scope.newSubscription()
else
template.dialog('open')
$rootScope.$evalAsync()