Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Commit

Permalink
Merge pull request elastic#60 from spalger/applyAsyncChanges
Browse files Browse the repository at this point in the history
Ensure that angular sees the async loading of editor states
  • Loading branch information
spalger committed Oct 27, 2015
2 parents 2584829 + 3178bfb commit f90410a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion public/src/controllers/SenseController.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ require('ui/modules')

// read server url changes into scope
es.addServerChangeListener((server) => {
this.serverUrl = server;
$scope.$evalAsync(() => {
this.serverUrl = server;
});
});

// sync ui changes back to the es module
Expand Down

0 comments on commit f90410a

Please sign in to comment.