in beginning I was just using $routeProvider as follows and it was giving me what I wanted.
angular.module(\'angularProject\', [\'angularProject.filters\', \
I don't think it's possible and I don't think that ui.router was built to be used with ngRoute. According to the ui-router docs, you should use ui-router's own implementation of $routeProvider, called $urlRouterProvider.
ui-router
$routeProvider