【问题标题】:Can I use DWR function in Angular.js?我可以在 Angular.js 中使用 DWR 函数吗?
【发布时间】:2014-01-04 06:54:27
【问题描述】:

我的团队成员熟悉 javaDWR ,我想在前端使用 angular.js 。所以我的问题是这两者是否会运作良好?谢谢。

【问题讨论】:

  • 我也会很感兴趣。任何新闻?谢谢。

标签: angularjs dwr


【解决方案1】:

是的,它们可以工作。

查看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.
}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-01-17
    • 2010-12-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多