Can I use DWR function in Angular.js?

818 Views Asked by At

My team member is familiar with java & DWR , I want use angular.js at frontend . So my question is whether the two will work well ? Thanks.

1

There are 1 best solutions below

0
On

Yes they can be made to work.

Check out one of the problem discussed HERE.

function mainCtrl($scope) {
     $scope.mymodel = "x";  // this is ok
     DWRService.searchForSomething(function(result){
           $scope.mymodel = result; // PROBLEM!!! it does not rerender the new value
     }
     $scope.mymodel = "y";  // this is also ok.
}