在may应用程序中,我已经构建了一个登录页面,并且在成功登录系统后,用户被重定向到使用javascript函数的另一个页面。
window.location.href = '/index.html';
登录页面和索引页面都使用相同的控制器。重定向到登录页面。
我在按钮单击事件中使用以下行设置了$rootScope
obect的属性。
$rootScope.curusername = $scope.username;
$rootScope.password = $scope.password;
window.location.href = '/index.html';
现在我想使用以下语法
访问重定向页面中的用户名和密码名字:{{curusername}},但没有显示任何值。我的错在哪里。
谢谢和问候 Utpal Maity