From 6968b473708f917ce43a25ce52b95373fe62bfef Mon Sep 17 00:00:00 2001 From: =?utf8?q?Frank=20J=2E=20G=C3=B3mez?= Date: Thu, 20 Dec 2018 16:46:30 -0500 Subject: [PATCH] Improved documentation of crmPageTitle directive. Documented assumption that AngularJS base page be named "CiviCRM." --- ang/crmUi.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ang/crmUi.js b/ang/crmUi.js index 216640ce90..0b09c60de7 100644 --- a/ang/crmUi.js +++ b/ang/crmUi.js @@ -1047,6 +1047,9 @@ // Sets document title & page title; attempts to override CMS title markup for the latter // WARNING: Use only once per route! + // WARNING: This directive works only if your AngularJS base page does not + // set a custom title (i.e., it has an initial title of "CiviCRM"). See the + // global variables pageTitle and documentTitle. // Example (same title for both):

{{ts('Hello')}}

// Example (separate document title):

{{ts('Hello')}}

.directive('crmPageTitle', function($timeout) { -- 2.25.1