$http({
method: 'GET',
url: 'http://localhost:55090/login/login',
}).success(function(data){
// With the data succesfully returned, call our callback
$("html").html("");
debugger
$("html").html(data);
window.history.pushState("object or string", "Title", "/login/login");
}).error(function(){
alert("error");
});
上記のコードは機能していますが、私は別のページのデータを読み込むことはできませんが、両方のページに対して2つの異なる角度を使用しています。 別のhtmlをロードすると、すべての機能(モデル、ディレクティブを含む)が機能しなくなりました。角度コントローラがwindow.history.pushstateの後に動作しない
この問題のjsFiddleのPlunkrを教えてください。 –