Hi iam using angularjs1 when im trying to redirect my page to another page using "ng-click"
its not getting redirected.My code is some thing like this.
- "submit" ng-click="clicked()" value="Addstudent" />
- SCRIPT:
- $scope.clicked = function () {
- $location.path("/AngularProject/Addstudent");
- }
when i click Addstudent button my url is changing to some thing like this.
- http://localhost:56120/#!/AngularProject/Addstudent
which is the better way to reditect the page $location.path or $windows.location.
please help me out...Thank you.


Nilesh PatilRank #1,129 · 1.6K reputationPosted Nov 1, 2017, 11:13 PM EDT
Junaid SyedRank #3,092 · 463 reputationPosted Nov 2, 2017, 12:51 AM EDT