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.– bfavaretto
@Arthur I don’t understand your doubt.
– akira-ito