Skip to content

Commit

Permalink
fix(angular1): run $digest loop after creating dialogs. Closes #1609
Browse files Browse the repository at this point in the history
  • Loading branch information
argelius committed Oct 14, 2016
1 parent dcc4ca7 commit bce2c7d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bindings/angular1/js/onsen.js
Expand Up @@ -261,6 +261,7 @@ limitations under the License.
options.link = function(element) {
if (options.parentScope) {
ons.$compile(angular.element(element))(options.parentScope.$new());
options.parentScope.$evalAsync();
} else {
ons.compile(element);
}
Expand Down Expand Up @@ -296,6 +297,7 @@ limitations under the License.
options.link = function(element) {
if (options.parentScope) {
ons.$compile(angular.element(element))(options.parentScope.$new());
options.parentScope.$evalAsync();
} else {
ons.compile(element);
}
Expand Down Expand Up @@ -331,6 +333,7 @@ limitations under the License.
options.link = function(element) {
if (options.parentScope) {
ons.$compile(angular.element(element))(options.parentScope.$new());
options.parentScope.$evalAsync();
} else {
ons.compile(element);
}
Expand Down

0 comments on commit bce2c7d

Please sign in to comment.