<commit_before>﻿var app = angular.module('app', ['NavigationAngular']);

app.controller('PersonController', function ($scope) {
	$scope.id;
	$scope.name;
	$scope.people;

	var personStates = Navigation.StateInfoConfig.dialogs.person.states;
	var subscription;
	personStates.list.navigated = function (data) {
		$scope.people = personSearch.search(data.name, data.sortExpression);
	};
	Navigation.start();
});

Navigation.StateInfoConfig.build([
	{ key: 'person', initial: 'list', states: [
		{ key: 'list', route: '{startRowIndex}/{maximumRows}/{sortExpression}', defaults: { startRowIndex: 0, maximumRows: 10, sortExpression: 'Name'}, trackCrumbTrail: false, title: 'Person Search', transitions: [
			{ key: 'select', to: 'details' }]},
		{ key: 'details', route: 'person', title: 'Person Details', }]}
]);
<commit_msg>Forced Angular to update onNavigate<commit_after>﻿var app = angular.module('app', ['NavigationAngular']);

app.controller('PersonController', function ($scope) {
	$scope.id;
	$scope.name;
	$scope.people;

	var personStates = Navigation.StateInfoConfig.dialogs.person.states;
	var subscription;
	personStates.list.navigated = function (data) {
		var people = personSearch.search(data.name, data.sortExpression);
		var totalRowCount = people.length;
		$scope.people = people.slice(data.startRowIndex, data.startRowIndex + data.maximumRows);
	};
	Navigation.StateController.onNavigate(function () {
		if (!$scope.$$phase)
			$scope.$apply();
	})
	Navigation.start();
});

Navigation.StateInfoConfig.build([
	{ key: 'person', initial: 'list', states: [
		{ key: 'list', route: '{startRowIndex}/{maximumRows}/{sortExpression}', defaults: { startRowIndex: 0, maximumRows: 10, sortExpression: 'Name'}, trackCrumbTrail: false, title: 'Person Search', transitions: [
			{ key: 'select', to: 'details' }]},
		{ key: 'details', route: 'person', title: 'Person Details', }]}
]);

{'fraction_non_alphanumeric': 0.17488076311605724, 'fraction_numerical': 0.003179650238473768, 'mean_word_length': 5.915750915750916, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1537243', 'n_tokens_mistral': 619, 'n_tokens_neox': 589, 'n_words': 128}