1

I current working Web Application with Angular JS.

I using a Angular route to implement a Single page Application.

This is my implemented code to route.

config(function($routeProvider){
            $routeProvider
                    .when('/init',{templateUrl:'/member/join?m=init'})
                    .when('/begin',{templateUrl:'/member/join?m=begin'})
                    .when('/end',{templateUrl:'/member/join?m=end'})
                    .otherwise({redirectTo:'/'});

        }).

I was stuck with a problem. AngularJS Router is update after page loading.

<body>        
<ng-view> 
</ng-view>
</body>

But, I can't update direct way without Angular Router.

I wonder how to update without angular router.

Example.

ontroller('registerController', function($scope, $http, baseUrl) {
            $scope.register = function() {
                var reqPromise = $http.post(baseUrl+'member/join',$scope.user);                            

                reqPromise.success(function(data, status, headers, config) {
               /// <-- i want to update <ng-view> without router. Just, direct update <ng-view>!


                });

help me.

1

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.