angular.module('qgovMam', [ 'ngRoute', 'hc.marked', 'qgov', 'searchView' ])
// angular.module('qgovMam', [ 'ngRoute', 'qgov', 'searchView' ])

.constant( 'TPL_PATH', '/templates' )


// markdown config
.config([ 'markedProvider', function( markedProvider ) {
	markedProvider.setOptions({ gfm: true });
}])


.config(function( $routeProvider, TPL_PATH ) {
	$routeProvider
	.when( '/', {
		controller: 'SearchController',
		controllerAs: 'vm',
		templateUrl : TPL_PATH + '/search.html'
	})
	.otherwise({ redirectTo : '/' });
});

@@ -174,16 +174,70 @@
 ates' )%0A
+// search results%0A.constant( 'RESULTS_PER_PAGE', 10 )%0A
 %0A%0A// mar
@@ -276,17 +276,17 @@
 ovider',
- 
+%0A
 function
@@ -286,16 +286,17 @@
 unction(
+ 
  markedP
@@ -364,16 +364,48 @@
 .config(
+%5B '$routeProvider', 'TPL_PATH',%0A
 function
@@ -405,16 +405,17 @@
 unction(
+ 
  $routeP
@@ -422,16 +422,18 @@
 rovider,
+  
  TPL_PAT
@@ -607,11 +607,12 @@
 /' %7D);%0A%7D
+%5D
 );%0A

add constant for results per page config