javascript - ng-view load a new separate page in angular -
i'm trying phone call rest api, does login process, in angular.
i have successfully, integrated angular rest calls. 1 time login successful, want code move new page.
in successful handler, i'm doing this:
$location.path("/home") and have route provide this:
$routeprovider.when('/home',{ templateurl: 'templates/test.html', controller: 'homecontroller' }) and in view have html tag this:
<div ng-view></div> things working fine expected. want ng-view load finish new page, rather template. login page, need move new page.
is possible so?
thanks in advance.
if donot want open html ng-view set location.href = url or window.location = url or utilize angular way $window.location=url;
javascript angularjs
No comments:
Post a Comment