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 PatilPosted Nov 2, 2017, 3:13 AM
Junaid SyedPosted Nov 2, 2017, 4:51 AM