{"size": 772, "ext": "js", "max_stars_repo_path": "webapp/controller/Home.controller.js", "max_stars_repo_name": "wridgeu/UI5-navigation-and-routing", "max_stars_repo_stars_event_min_datetime": "2020-04-10T00:25:05.000Z", "max_stars_repo_stars_event_max_datetime": "2020-12-28T21:46:04.000Z", "max_issues_repo_path": "webapp/controller/Home.controller.js", "max_issues_repo_name": "wridgeu/UI5-navigation-and-routing", "max_issues_repo_issues_event_min_datetime": "2020-03-28T12:14:21.000Z", "max_issues_repo_issues_event_max_datetime": "2020-05-07T09:21:23.000Z", "max_forks_repo_path": "webapp/controller/Home.controller.js", "max_forks_repo_name": "wridgeu/UI5-navigation-and-routing", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 3, "max_issues_count": 7, "max_forks_count": null, "avg_line_length": 29.6923076923, "max_line_length": 85, "alphanum_fraction": 0.6865284974}
sap.ui.define([
	"com/mrb/UI5-Navigation-and-Routing/controller/BaseController"
], function (BaseController) {
	"use strict";

	return BaseController.extend("com.mrb.UI5-Navigation-and-Routing.controller.Home", {
		onDisplayNotFound: function () {
			/**
			 * Alternative ways of getting the `sap.m.routing.Targets` Object
			 * this.getOwnerComponent().getRouter().getTargets() or 
			 * this.getOwnerComponent().getTargets().
			 */
			//display the "notFound" target without changing the hash
			this.getRouter().getTargets().display("notFound", {
				fromTarget: "home"
			});
		},
		onNavToEmployees: function () {
			this.getRouter().navTo("employeeList");
		},
		onNavToEmployeeOverview : function ()  {
			this.getRouter().navTo("employeeOverview");
		}
	});
});
