call an http request control on Angularjs

Asked

Viewed 58 times

1

how can I call a control file from an http request (get)

           $http({
              method: 'GET',
              url: 'dashboard.do'
            }).then(function successCallback(response) {
                // this callback will be called asynchronously
                // when the response is available
                $("#conteudo").html(response.data);
              }, function errorCallback(response) {
                // called asynchronously if an error occurs
                // or server returns response with an error status.
              });

when I call Dashboard the Angularjs does not work on it, how can I resolve the situation?

  • The logic of angular is to receive data, and let the angular take care of the DOM itself. You are replacing all the content of #conteudo, which is outside the framework standard. That’s probably why it doesn’t work.

  • @Arthur I don’t understand your doubt.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.