Skip to content

Commit

Permalink
Merge pull request #230 from dvelasquez/patch-1
Browse files Browse the repository at this point in the history
Adding $evalAsync suggestion
  • Loading branch information
egilkh authored Jul 21, 2016
2 parents 4512156 + e6df398 commit e2305cd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,17 @@ $timeout(function(){
});
```
or better using `$scope.$evalAsync` as:
```javascript
$scope.$storage.school = theSchool;
$log.debug("launching and saving the new value" + url);
$scope.$evalAsync(function(){
var myWindow = $window.open("", "_self");
myWindow.document.write(response.data);
});
```
And your new values will be persisted correctly.
Todos
Expand Down

0 comments on commit e2305cd

Please sign in to comment.