From 02308c07df621df0009c7a28c7707b05164522c4 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Mon, 30 Jun 2014 17:19:20 -0700 Subject: [PATCH] CRM-14798 - crmUi - Add "goto()" helper function Example: This allows us to use buttons instead of 's -- which makes it easier to maintain consistent styling in a button bar. --- js/angular-crm-ui.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/js/angular-crm-ui.js b/js/angular-crm-ui.js index 021550d5da..52c02a2739 100644 --- a/js/angular-crm-ui.js +++ b/js/angular-crm-ui.js @@ -64,6 +64,12 @@ } }; }) + .run(function($rootScope, $location) { + /// Example: + $rootScope.goto = function(path) { + $location.path(path); + }; + }) ; })(angular, CRM.$, CRM._); \ No newline at end of file -- 2.25.1