小编Sza*_*áll的帖子

AngularJS - 错误:无法在"节点"上执行"removeChild":要删除的节点不是此节点的子节点

我正在使用RestAngular来进行Rest Call


_getMerchantData : function() {
    var deferred = $q.defer();
    var service = Restangular
        .all('UrbanLife');
    service
        .one('service')
        .one('api')
        .one('v1')
        .one('businessowner')
        .one('getUserInfo')
        .get()
        .then(
            function(response) {
                countrylist = response;
                deferred.resolve(response);
            },
            function(response) {
                deferred.reject(response);
            }
        );
    return deferred.promise;
}
Run Code Online (Sandbox Code Playgroud)

控制器开启md-select的更改功能


$scope.onActionChange= function(){
    if($scope.welcome.action==="editProfile"){
        $scope.getUserProfile();
    }
};
$scope.getUserProfile=function(){
    merchantService.merchantManager.UpdateUserProfileFlag=true;
    merchantService.merchantManager.emailValidate = false;
    window.location = "#/signup?EditParam="+true;
};
Run Code Online (Sandbox Code Playgroud)

给出此错误的第二页控制器.它获取并显示数据._____________________________________________________________________________

/*------registrationCtrl------------*/
app.controller(
    'registrationCtrl',
    [
        '$scope',
        'merchantService',
        'tokenService',
        'photoService',
        '$http',
        '$modal',
        '$location',
        function($scope, merchantService, tokenService, photoService, $http, $modal, $location) {
            $scope.checkIfUpdateProfile=function(){
                var params=$location.search();
                console.log("params.EditParam    "+params.EditParam);
                if(params.EditParam){ …
Run Code Online (Sandbox Code Playgroud)

javascript angularjs angular-material

5
推荐指数
0
解决办法
1649
查看次数

在 Angularjs 中 [] 和 {} 之间使用什么

我需要制作相同元素的多个对象。我无法弄清楚我应该在 [] 和 {} 之间使用哪个来制作我的数据结构。

我不清楚 [] 和 {} 之间的区别。我正在使用 Angularjs

javascript arrays object angularjs

-1
推荐指数
1
解决办法
5182
查看次数

标签 统计

angularjs ×2

javascript ×2

angular-material ×1

arrays ×1

object ×1