How to handle query string like (index.php?comment=hello) in routeprovider while configuration in angularjs.
Example:
angular.module('app', ['ngRoute'])
.config(function($routeProvider, $locationProvider) {
$locationProvider.html5Mode({
enabled: true,
requireBase: false
}).hashPrefix('!');
$routeProvider
.when('/index.php?comment=hello',{
redirectTo:'/index.php'
});