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.
- <input type="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.
iam getting extra signs "#!" in my url.if i remove that sign from url its' getting redirect to destination page.
which is the better way to reditect the page $location.path or $windows.location.
please help me out...Thank you.