From: Frank J. Gómez Date: Thu, 20 Dec 2018 21:46:30 +0000 (-0500) Subject: Improved documentation of crmPageTitle directive. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6968b473708f917ce43a25ce52b95373fe62bfef;p=civicrm-core.git Improved documentation of crmPageTitle directive. Documented assumption that AngularJS base page be named "CiviCRM." --- 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) {